Commit 30b76fa383b6663ad401e47b01e6920a61f168c4
1 parent
44eca05a
Exists in
master
提交
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
src/HttpServer/logic/logic.go
@@ -283,14 +283,14 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { | @@ -283,14 +283,14 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { | ||
283 | addgold := int64(0) | 283 | addgold := int64(0) |
284 | offsec := nowtime - int64(lasttime) | 284 | offsec := nowtime - int64(lasttime) |
285 | if uinfo.IsDouble == 1 { | 285 | if uinfo.IsDouble == 1 { |
286 | - if nowtime > int64(uinfo.IsDouble+150) { | 286 | + if nowtime > int64(uinfo.StartDoubleTime+150) { |
287 | 287 | ||
288 | //加速过期了 | 288 | //加速过期了 |
289 | //计算部分三倍的 | 289 | //计算部分三倍的 |
290 | - if lasttime > uinfo.IsDouble+150 { | 290 | + if lasttime > uinfo.StartDoubleTime+150 { |
291 | addgold = uinfo.Goldrate * offsec | 291 | addgold = uinfo.Goldrate * offsec |
292 | } else { | 292 | } else { |
293 | - noroffsec := nowtime - int64(uinfo.IsDouble+150) | 293 | + noroffsec := nowtime - int64(uinfo.StartDoubleTime+150) |
294 | accoffsec := offsec - noroffsec | 294 | accoffsec := offsec - noroffsec |
295 | addgold = uinfo.Goldrate*accoffsec*3 + noroffsec*uinfo.Goldrate | 295 | addgold = uinfo.Goldrate*accoffsec*3 + noroffsec*uinfo.Goldrate |
296 | } | 296 | } |
@@ -471,14 +471,14 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { | @@ -471,14 +471,14 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { | ||
471 | addgold := int64(0) | 471 | addgold := int64(0) |
472 | offsec := nowtime - int64(lasttime) | 472 | offsec := nowtime - int64(lasttime) |
473 | if uinfo.IsDouble == 1 { | 473 | if uinfo.IsDouble == 1 { |
474 | - if nowtime > int64(uinfo.IsDouble+150) { | 474 | + if nowtime > int64(uinfo.StartDoubleTime+150) { |
475 | 475 | ||
476 | //加速过期了 | 476 | //加速过期了 |
477 | //计算部分三倍的 | 477 | //计算部分三倍的 |
478 | - if lasttime > uinfo.IsDouble+150 { | 478 | + if lasttime > uinfo.StartDoubleTime+150 { |
479 | addgold = uinfo.Goldrate * offsec | 479 | addgold = uinfo.Goldrate * offsec |
480 | } else { | 480 | } else { |
481 | - noroffsec := nowtime - int64(uinfo.IsDouble+150) | 481 | + noroffsec := nowtime - int64(uinfo.StartDoubleTime+150) |
482 | accoffsec := offsec - noroffsec | 482 | accoffsec := offsec - noroffsec |
483 | addgold = uinfo.Goldrate*accoffsec*3 + noroffsec*uinfo.Goldrate | 483 | addgold = uinfo.Goldrate*accoffsec*3 + noroffsec*uinfo.Goldrate |
484 | } | 484 | } |