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,7 +326,7 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { | ||
326 | 326 | ||
327 | uinfo.OfflineGold = offsec * uinfo.Goldrate | 327 | uinfo.OfflineGold = offsec * uinfo.Goldrate |
328 | resp.Data.Coin = strconv.FormatInt(uinfo.Gold, 10) | 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 | resp.Data.Output = "0" | 330 | resp.Data.Output = "0" |
331 | resp.Data.OfflineReward.OfflineTime = int(offsec) | 331 | resp.Data.OfflineReward.OfflineTime = int(offsec) |
332 | resp.Data.OfflineReward.Income = strconv.FormatInt(uinfo.OfflineGold, 10) | 332 | resp.Data.OfflineReward.Income = strconv.FormatInt(uinfo.OfflineGold, 10) |
@@ -360,7 +360,7 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { | @@ -360,7 +360,7 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { | ||
360 | } | 360 | } |
361 | 361 | ||
362 | resp.Data.TimingReward = true | 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 | uinfo.Gold += addgold | 365 | uinfo.Gold += addgold |
366 | uinfo.GoldSum += addgold | 366 | uinfo.GoldSum += addgold |