Commit ed5ff4010b6f55723e4cedf0e529c07c85398f6a

Authored by 陆恒
1 parent 3b090d2c
Exists in master

提交

src/HttpServer/logic/datadef.go
@@ -125,6 +125,7 @@ type GetguangoldReq struct { @@ -125,6 +125,7 @@ type GetguangoldReq struct {
125 125
126 type GetguangoldData struct { 126 type GetguangoldData struct {
127 Guangold int `json:"guangold"` 127 Guangold int `json:"guangold"`
  128 + Wallgold int `json:"walletgold"`
128 } 129 }
129 130
130 type GetguangoldResp struct { 131 type GetguangoldResp struct {
src/HttpServer/logic/logic.go
@@ -998,6 +998,8 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uniqueuuid, gameid, @@ -998,6 +998,8 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uniqueuuid, gameid,
998 998
999 uinfo.GuanGold -= rdata.Goldnum 999 uinfo.GuanGold -= rdata.Goldnum
1000 1000
  1001 + resp.Data.Guangold = uinfo.GuanGold
  1002 + resp.Data.Wallgold = uinfo.RealGold
1001 SaveUserInfo(uinfo, uniqueuuid) 1003 SaveUserInfo(uinfo, uniqueuuid)
1002 1004
1003 resp.Code = ERROR_OK 1005 resp.Code = ERROR_OK
@@ -1005,6 +1007,7 @@ func HandlerDrawguangold(w http.ResponseWriter, data string, uniqueuuid, gameid, @@ -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 respstr, _ := json.Marshal(&resp) 1011 respstr, _ := json.Marshal(&resp)
1009 fmt.Fprint(w, string(respstr)) 1012 fmt.Fprint(w, string(respstr))
1010 } 1013 }