Commit de483a17b1a93f64b376909c774f3eb969065637

Authored by 陆恒
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 315 resp.Data.Output = strconv.FormatInt(uinfo.Goldrate, 10)
316 316 resp.Data.Coin = strconv.FormatInt(uinfo.Gold, 10)
317 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 492 uinfo.GoldSum += addgold
491 493 uinfo.AddToRank()
492 494 logger.Info("HandlerGetMainPageInfo addgold=%v", addgold)
  495 +
  496 + SaveUserInfo(uinfo, strconv.Itoa(uuid))
493 497 }
494 498  
495 499 //保存此次计算时间
... ...