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 | 283 | addgold := int64(0) |
| 284 | 284 | offsec := nowtime - int64(lasttime) |
| 285 | 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 | 291 | addgold = uinfo.Goldrate * offsec |
| 292 | 292 | } else { |
| 293 | - noroffsec := nowtime - int64(uinfo.IsDouble+150) | |
| 293 | + noroffsec := nowtime - int64(uinfo.StartDoubleTime+150) | |
| 294 | 294 | accoffsec := offsec - noroffsec |
| 295 | 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 | 471 | addgold := int64(0) |
| 472 | 472 | offsec := nowtime - int64(lasttime) |
| 473 | 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 | 479 | addgold = uinfo.Goldrate * offsec |
| 480 | 480 | } else { |
| 481 | - noroffsec := nowtime - int64(uinfo.IsDouble+150) | |
| 481 | + noroffsec := nowtime - int64(uinfo.StartDoubleTime+150) | |
| 482 | 482 | accoffsec := offsec - noroffsec |
| 483 | 483 | addgold = uinfo.Goldrate*accoffsec*3 + noroffsec*uinfo.Goldrate |
| 484 | 484 | } | ... | ... |