Commit 5caec6c3338b317eacd29a6dbde2789a31c2412f
1 parent
bc70f162
Exists in
master
提交
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/logic.go
@@ -1188,6 +1188,8 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { | @@ -1188,6 +1188,8 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { | ||
1188 | resp.Data.OfflineReward.OfflineTime = int(offsec) | 1188 | resp.Data.OfflineReward.OfflineTime = int(offsec) |
1189 | resp.Data.OfflineReward.Income = strconv.FormatInt(uinfo.OfflineGold, 10) | 1189 | resp.Data.OfflineReward.Income = strconv.FormatInt(uinfo.OfflineGold, 10) |
1190 | resp.Data.OfflineReward.LeftTimes = uinfo.LeftOfflineTimes | 1190 | resp.Data.OfflineReward.LeftTimes = uinfo.LeftOfflineTimes |
1191 | + | ||
1192 | + SaveUserInfo(uinfo, strconv.Itoa(uuid)) | ||
1191 | } else { | 1193 | } else { |
1192 | //按费离线收益计算 | 1194 | //按费离线收益计算 |
1193 | //先计算一下双倍时间是否过期了 | 1195 | //先计算一下双倍时间是否过期了 |