Commit e0f1e80b by wang

更改超时时间10秒

parent b204f919
...@@ -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{}{
......
...@@ -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
......
...@@ -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", "10000000","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)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment