Commit 0b8145b247473dab1c531441ea771bece0bf639d
1 parent
ce280177
Exists in
master
提交
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/HttpServer/logic/logic.go
... | ... | @@ -326,7 +326,7 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { |
326 | 326 | |
327 | 327 | uinfo.OfflineGold = offsec * uinfo.Goldrate |
328 | 328 | resp.Data.Coin = strconv.FormatInt(uinfo.Gold, 10) |
329 | - resp.Data.Now = int(time.Now().Unix()) | |
329 | + resp.Data.Now = int(time.Now().Unix()) * 1000 //返回毫秒 | |
330 | 330 | resp.Data.Output = "0" |
331 | 331 | resp.Data.OfflineReward.OfflineTime = int(offsec) |
332 | 332 | resp.Data.OfflineReward.Income = strconv.FormatInt(uinfo.OfflineGold, 10) |
... | ... | @@ -360,7 +360,7 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { |
360 | 360 | } |
361 | 361 | |
362 | 362 | resp.Data.TimingReward = true |
363 | - resp.Data.Now = int(time.Now().Unix()) | |
363 | + resp.Data.Now = int(time.Now().Unix()) * 1000 | |
364 | 364 | |
365 | 365 | uinfo.Gold += addgold |
366 | 366 | uinfo.GoldSum += addgold | ... | ... |