Commit ed5ff4010b6f55723e4cedf0e529c07c85398f6a
1 parent
3b090d2c
Exists in
master
提交
Showing
2 changed files
with
4 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/datadef.go
src/HttpServer/logic/logic.go
| ... | ... | @@ -998,6 +998,8 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uniqueuuid, gameid, |
| 998 | 998 | |
| 999 | 999 | uinfo.GuanGold -= rdata.Goldnum |
| 1000 | 1000 | |
| 1001 | + resp.Data.Guangold = uinfo.GuanGold | |
| 1002 | + resp.Data.Wallgold = uinfo.RealGold | |
| 1001 | 1003 | SaveUserInfo(uinfo, uniqueuuid) |
| 1002 | 1004 | |
| 1003 | 1005 | resp.Code = ERROR_OK |
| ... | ... | @@ -1005,6 +1007,7 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uniqueuuid, gameid, |
| 1005 | 1007 | } |
| 1006 | 1008 | |
| 1007 | 1009 | //回包 |
| 1010 | + logger.Info("HandlerDrawguangold resp=%+v", resp) | |
| 1008 | 1011 | respstr, _ := json.Marshal(&resp) |
| 1009 | 1012 | fmt.Fprint(w, string(respstr)) |
| 1010 | 1013 | } | ... | ... |