diff --git a/src/HttpServer/logic/function.go b/src/HttpServer/logic/function.go index c8f869b..35c9f3e 100644 --- a/src/HttpServer/logic/function.go +++ b/src/HttpServer/logic/function.go @@ -1040,7 +1040,7 @@ func (u *UserData) GetRedCatIdList() []LimitListDesc { } } - udatastr, err := redishandler.GetRedisClient().HGet(redis.USER_WAREHOUSE_INFO, strconv.Itoa(u.UserId)) + /*udatastr, err := redishandler.GetRedisClient().HGet(redis.USER_WAREHOUSE_INFO, strconv.Itoa(u.UserId)) if err != nil { logger.Error("CalcGoldRate failed err=%v", err) return rtsl @@ -1069,7 +1069,7 @@ func (u *UserData) GetRedCatIdList() []LimitListDesc { wdata.Info = append(wdata.Info[:i], wdata.Info[i+1:]...) i-- } - } + }*/ return rtsl diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index d42cc1a..45e2b59 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -2804,6 +2804,12 @@ func HandlerPutCattoWareHouse(w http.ResponseWriter, data string, uuid int) { resp.Message = "posnotvalid" break } + if uinfo.PosInfo[rdata.Position].StartTime != 0 { + logger.Error("HandlerPutCattoWareHouse not right failed=%v", err) + resp.Code = 1 + resp.Message = "分红猫无法放入仓库!" + break + } //合成界面红包猫的等级采用id+37的形式 rtval := uinfo.tryPutToWareHouse(udata, rdata.Position, uuid) -- libgit2 0.21.0