From d28494f71539acf8467521b2536017482c4a4c57 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Mon, 15 Jun 2020 11:36:11 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/logic.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 3d6102b..142269b 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -302,6 +302,8 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { addgold = uinfo.Goldrate * offsec * 3 } + } else { + addgold = uinfo.Goldrate * offsec } resp.Data.TimingReward = true @@ -479,6 +481,8 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { addgold = uinfo.Goldrate * offsec * 3 } + } else { + addgold = uinfo.Goldrate * offsec } uinfo.Gold = addgold @@ -489,7 +493,7 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { //保存此次计算时间 nowtimestr := strconv.FormatInt(nowtime, 10) redishandler.GetRedisClient().HSet(redis.USER_LAST_CALC_TIME, strconv.Itoa(uuid), nowtimestr) - logger.Info("HandlerGetUserData save USER_LAST_CALC_TIME time=%v", nowtimestr) + logger.Info("HandlerGetMainPageInfo save USER_LAST_CALC_TIME time=%v", nowtimestr) redlist := uinfo.GetRedCatIdList() resp.Data.LimitCatList = append(resp.Data.LimitCatList, redlist...) -- libgit2 0.21.0