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,8 +87,9 @@ type DrawguangoldReq struct { | ||
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | type DrawguangoldData struct { | 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 | type DrawguangoldResp struct { | 95 | type DrawguangoldResp struct { |
src/HttpServer/logic/logic.go
| @@ -693,8 +693,6 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { | @@ -693,8 +693,6 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { | ||
| 693 | break | 693 | break |
| 694 | } | 694 | } |
| 695 | 695 | ||
| 696 | - uinfo.GetFromGuanCnt++ | ||
| 697 | - uinfo.Achieve.SumGetGuan++ | ||
| 698 | // | 696 | // |
| 699 | mcfg := jsonconf.GetMoneyBoxCfg(uinfo.Lv) | 697 | mcfg := jsonconf.GetMoneyBoxCfg(uinfo.Lv) |
| 700 | if mcfg == nil { | 698 | if mcfg == nil { |
| @@ -720,12 +718,15 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { | @@ -720,12 +718,15 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uuid int) { | ||
| 720 | break | 718 | break |
| 721 | } | 719 | } |
| 722 | 720 | ||
| 721 | + uinfo.GetFromGuanCnt++ | ||
| 722 | + uinfo.Achieve.SumGetGuan++ | ||
| 723 | uinfo.GuanGold = uinfo.GuanGold - rdata.Goldnum | 723 | uinfo.GuanGold = uinfo.GuanGold - rdata.Goldnum |
| 724 | uinfo.RealGold = goldnum | 724 | uinfo.RealGold = goldnum |
| 725 | //uinfo.RealGold += rdata.Goldnum | 725 | //uinfo.RealGold += rdata.Goldnum |
| 726 | 726 | ||
| 727 | resp.Data.Guangold = uinfo.GuanGold | 727 | resp.Data.Guangold = uinfo.GuanGold |
| 728 | resp.Data.Wallgold = uinfo.RealGold | 728 | resp.Data.Wallgold = uinfo.RealGold |
| 729 | + resp.Data.Totalfetchcnt = uinfo.Achieve.SumGetGuan | ||
| 729 | 730 | ||
| 730 | SaveUserInfo(uinfo) | 731 | SaveUserInfo(uinfo) |
| 731 | 732 |