From 30b76fa383b6663ad401e47b01e6920a61f168c4 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Mon, 15 Jun 2020 13:38:46 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/logic.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 97f3ad4..946c690 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -283,14 +283,14 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { addgold := int64(0) offsec := nowtime - int64(lasttime) if uinfo.IsDouble == 1 { - if nowtime > int64(uinfo.IsDouble+150) { + if nowtime > int64(uinfo.StartDoubleTime+150) { //加速过期了 //计算部分三倍的 - if lasttime > uinfo.IsDouble+150 { + if lasttime > uinfo.StartDoubleTime+150 { addgold = uinfo.Goldrate * offsec } else { - noroffsec := nowtime - int64(uinfo.IsDouble+150) + noroffsec := nowtime - int64(uinfo.StartDoubleTime+150) accoffsec := offsec - noroffsec addgold = uinfo.Goldrate*accoffsec*3 + noroffsec*uinfo.Goldrate } @@ -471,14 +471,14 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { addgold := int64(0) offsec := nowtime - int64(lasttime) if uinfo.IsDouble == 1 { - if nowtime > int64(uinfo.IsDouble+150) { + if nowtime > int64(uinfo.StartDoubleTime+150) { //加速过期了 //计算部分三倍的 - if lasttime > uinfo.IsDouble+150 { + if lasttime > uinfo.StartDoubleTime+150 { addgold = uinfo.Goldrate * offsec } else { - noroffsec := nowtime - int64(uinfo.IsDouble+150) + noroffsec := nowtime - int64(uinfo.StartDoubleTime+150) accoffsec := offsec - noroffsec addgold = uinfo.Goldrate*accoffsec*3 + noroffsec*uinfo.Goldrate } -- libgit2 0.21.0