From 0b8145b247473dab1c531441ea771bece0bf639d Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Mon, 15 Jun 2020 15:43:48 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/logic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index df1323e..79ae68c 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -326,7 +326,7 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { uinfo.OfflineGold = offsec * uinfo.Goldrate resp.Data.Coin = strconv.FormatInt(uinfo.Gold, 10) - resp.Data.Now = int(time.Now().Unix()) + resp.Data.Now = int(time.Now().Unix()) * 1000 //返回毫秒 resp.Data.Output = "0" resp.Data.OfflineReward.OfflineTime = int(offsec) resp.Data.OfflineReward.Income = strconv.FormatInt(uinfo.OfflineGold, 10) @@ -360,7 +360,7 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { } resp.Data.TimingReward = true - resp.Data.Now = int(time.Now().Unix()) + resp.Data.Now = int(time.Now().Unix()) * 1000 uinfo.Gold += addgold uinfo.GoldSum += addgold -- libgit2 0.21.0