Commit de483a17b1a93f64b376909c774f3eb969065637
1 parent
535ac246
Exists in
master
提交
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/logic.go
| @@ -315,6 +315,8 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { | @@ -315,6 +315,8 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { | ||
| 315 | resp.Data.Output = strconv.FormatInt(uinfo.Goldrate, 10) | 315 | resp.Data.Output = strconv.FormatInt(uinfo.Goldrate, 10) |
| 316 | resp.Data.Coin = strconv.FormatInt(uinfo.Gold, 10) | 316 | resp.Data.Coin = strconv.FormatInt(uinfo.Gold, 10) |
| 317 | logger.Info("HandlerGetUserData addgold=%v", addgold) | 317 | logger.Info("HandlerGetUserData addgold=%v", addgold) |
| 318 | + | ||
| 319 | + SaveUserInfo(uinfo, strconv.Itoa(uuid)) | ||
| 318 | } | 320 | } |
| 319 | 321 | ||
| 320 | //保存此次计算时间 | 322 | //保存此次计算时间 |
| @@ -490,6 +492,8 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { | @@ -490,6 +492,8 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { | ||
| 490 | uinfo.GoldSum += addgold | 492 | uinfo.GoldSum += addgold |
| 491 | uinfo.AddToRank() | 493 | uinfo.AddToRank() |
| 492 | logger.Info("HandlerGetMainPageInfo addgold=%v", addgold) | 494 | logger.Info("HandlerGetMainPageInfo addgold=%v", addgold) |
| 495 | + | ||
| 496 | + SaveUserInfo(uinfo, strconv.Itoa(uuid)) | ||
| 493 | } | 497 | } |
| 494 | 498 | ||
| 495 | //保存此次计算时间 | 499 | //保存此次计算时间 |