Commit d28494f71539acf8467521b2536017482c4a4c57
1 parent
8fddadc5
Exists in
master
提交
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/HttpServer/logic/logic.go
... | ... | @@ -302,6 +302,8 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { |
302 | 302 | addgold = uinfo.Goldrate * offsec * 3 |
303 | 303 | } |
304 | 304 | |
305 | + } else { | |
306 | + addgold = uinfo.Goldrate * offsec | |
305 | 307 | } |
306 | 308 | |
307 | 309 | resp.Data.TimingReward = true |
... | ... | @@ -479,6 +481,8 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { |
479 | 481 | addgold = uinfo.Goldrate * offsec * 3 |
480 | 482 | } |
481 | 483 | |
484 | + } else { | |
485 | + addgold = uinfo.Goldrate * offsec | |
482 | 486 | } |
483 | 487 | |
484 | 488 | uinfo.Gold = addgold |
... | ... | @@ -489,7 +493,7 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { |
489 | 493 | //保存此次计算时间 |
490 | 494 | nowtimestr := strconv.FormatInt(nowtime, 10) |
491 | 495 | redishandler.GetRedisClient().HSet(redis.USER_LAST_CALC_TIME, strconv.Itoa(uuid), nowtimestr) |
492 | - logger.Info("HandlerGetUserData save USER_LAST_CALC_TIME time=%v", nowtimestr) | |
496 | + logger.Info("HandlerGetMainPageInfo save USER_LAST_CALC_TIME time=%v", nowtimestr) | |
493 | 497 | |
494 | 498 | redlist := uinfo.GetRedCatIdList() |
495 | 499 | resp.Data.LimitCatList = append(resp.Data.LimitCatList, redlist...) | ... | ... |