Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wang
/
golang-open-platform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e0f1e80b
authored
Feb 07, 2021
by
wang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更改超时时间10秒
parent
b204f919
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
doc/redis_config_generate.go
model/filter.go
open/flowmeter.go
doc/redis_config_generate.go
View file @
e0f1e80b
...
@@ -90,13 +90,13 @@ func businessInterfaceList() {
...
@@ -90,13 +90,13 @@ func businessInterfaceList() {
//获取sku列表(根据class_id查询) 500,10000000
//获取sku列表(根据class_id查询) 500,10000000
//获取sku列表(full-显示所有字段) 50,10000000
//获取sku列表(full-显示所有字段) 50,10000000
jdToken
+
"_"
+
GetSkuListByClass
:
map
[
string
]
interface
{}{
jdToken
+
"_"
+
GetSkuListByClass
:
map
[
string
]
interface
{}{
"dayMaxNum"
:
11
,
"dayMaxNum"
:
6100
,
"minMaxNum"
:
5
,
"minMaxNum"
:
2000
,
"totalMaxNum"
:
10000
,
"totalMaxNum"
:
10000
,
},
},
jdToken
+
"_"
+
GetSkuListFull
:
map
[
string
]
interface
{}{
jdToken
+
"_"
+
GetSkuListFull
:
map
[
string
]
interface
{}{
"dayMaxNum"
:
1
,
"dayMaxNum"
:
6100
,
"minMaxNum"
:
1
,
"minMaxNum"
:
2000
,
"totalMaxNum"
:
10000
,
"totalMaxNum"
:
10000
,
},
},
jdToken
+
"_"
+
GetSkuListPrice
:
map
[
string
]
interface
{}{
jdToken
+
"_"
+
GetSkuListPrice
:
map
[
string
]
interface
{}{
...
...
model/filter.go
View file @
e0f1e80b
...
@@ -34,7 +34,7 @@ func filterData(remoteData RemoteSkuData,filterField []string)(data RemoteSkuDat
...
@@ -34,7 +34,7 @@ func filterData(remoteData RemoteSkuData,filterField []string)(data RemoteSkuDat
newItem
[
field
]
=
filterLadder
(
info
[
field
])
newItem
[
field
]
=
filterLadder
(
info
[
field
])
}
}
}
else
{
}
else
{
common
.
PrintStdout
()
.
Printf
(
"skuId:%s,字段:%s 不存在"
,
string
(
skuId
),
field
)
//
common.PrintStdout().Printf("skuId:%s,字段:%s 不存在",string(skuId),field)
}
}
}
}
remoteData
[
skuId
]
=
newItem
remoteData
[
skuId
]
=
newItem
...
...
open/flowmeter.go
View file @
e0f1e80b
...
@@ -153,7 +153,7 @@ func (this *flowmeter)addOnlyLock(key string){
...
@@ -153,7 +153,7 @@ func (this *flowmeter)addOnlyLock(key string){
//common.PrintStdout().Printf("加锁 key:%s",name)
//common.PrintStdout().Printf("加锁 key:%s",name)
for
{
for
{
s
,
err
:=
redisWriteConn
.
Do
(
"SET"
,
name
,
"1"
,
"EX"
,
"10
000000
"
,
"NX"
)
//锁两秒没主动删就自动关闭(防止某个流程卡死,没执行到删除锁)
s
,
err
:=
redisWriteConn
.
Do
(
"SET"
,
name
,
"1"
,
"EX"
,
"10"
,
"NX"
)
//锁两秒没主动删就自动关闭(防止某个流程卡死,没执行到删除锁)
if
(
err
!=
nil
){
if
(
err
!=
nil
){
common
.
PrintStdout
()
.
Printf
(
"读取redis 锁 key:%d 报错"
,
key
)
common
.
PrintStdout
()
.
Printf
(
"读取redis 锁 key:%d 报错"
,
key
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment