Commit c75d2217344e71a2659c4bd080a6e27e5a5fd1ee
1 parent
1a044553
Exists in
master
and in
4 other branches
增加
Showing
2 changed files
with
6 additions
and
4 deletions
Show diff stats
src/HttpServer/logic/datadef.go
| ... | ... | @@ -87,8 +87,9 @@ type DrawguangoldReq struct { |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | type DrawguangoldData struct { |
| 90 | - Guangold int `json:"guangold"` | |
| 91 | - Wallgold int `json:"wallgold"` | |
| 90 | + Guangold int `json:"guangold"` | |
| 91 | + Wallgold int `json:"wallgold"` | |
| 92 | + Totalfetchcnt int `json:"totalfetchcnt"` | |
| 92 | 93 | } |
| 93 | 94 | |
| 94 | 95 | type DrawguangoldResp struct { | ... | ... |
src/HttpServer/logic/logic.go
| ... | ... | @@ -693,8 +693,6 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { |
| 693 | 693 | break |
| 694 | 694 | } |
| 695 | 695 | |
| 696 | - uinfo.GetFromGuanCnt++ | |
| 697 | - uinfo.Achieve.SumGetGuan++ | |
| 698 | 696 | // |
| 699 | 697 | mcfg := jsonconf.GetMoneyBoxCfg(uinfo.Lv) |
| 700 | 698 | if mcfg == nil { |
| ... | ... | @@ -720,12 +718,15 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { |
| 720 | 718 | break |
| 721 | 719 | } |
| 722 | 720 | |
| 721 | + uinfo.GetFromGuanCnt++ | |
| 722 | + uinfo.Achieve.SumGetGuan++ | |
| 723 | 723 | uinfo.GuanGold = uinfo.GuanGold - rdata.Goldnum |
| 724 | 724 | uinfo.RealGold = goldnum |
| 725 | 725 | //uinfo.RealGold += rdata.Goldnum |
| 726 | 726 | |
| 727 | 727 | resp.Data.Guangold = uinfo.GuanGold |
| 728 | 728 | resp.Data.Wallgold = uinfo.RealGold |
| 729 | + resp.Data.Totalfetchcnt = uinfo.Achieve.SumGetGuan | |
| 729 | 730 | |
| 730 | 731 | SaveUserInfo(uinfo) |
| 731 | 732 | ... | ... |