Ver código fonte

feat:超时时间

wangshan 1 ano atrás
pai
commit
f25544f7c7
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      jyBXBase/rpc/model/newestBidding.go

+ 1 - 1
jyBXBase/rpc/model/newestBidding.go

@@ -395,7 +395,7 @@ func ExtendNewListCache(n *NewSet, in *bxbase.NewestBiddingReq, list []*bxbase.N
 				entity.ReqLimitLock.Unlock()
 				if !isDoing {
 					entity.ReqLimitLock.Lock()
-					redis.Put("new", fmt.Sprintf("p1_indexMessage_new_recovery_%d", in.PositionId), "1", 15*time.Now().Minute()) //十五分钟
+					redis.Put("new", fmt.Sprintf("p1_indexMessage_new_recovery_%d", in.PositionId), "1", 15*60) //十五分钟
 					entity.ReqLimitLock.Unlock()
 					switch n.RedisStatus {
 					case StatusLoginUser: