Commit c543d57fa36af3b6099c8de36993e0c1207ebc6c
1 parent
0906c0c5
Exists in
master
and in
4 other branches
提交
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
src/HttpServer/logic/datadef.go
... | ... | @@ -234,7 +234,8 @@ type QueryReadGoldResp struct { |
234 | 234 | } |
235 | 235 | |
236 | 236 | type FetchreadgoldData struct { |
237 | - Goldnum int `json:"goldnum"` | |
237 | + Curgoldnum int `json:"curgoldnum"` | |
238 | + Getgoldnum int `json:"getgoldnum"` | |
238 | 239 | } |
239 | 240 | |
240 | 241 | type FetchreadgoldResp struct { | ... | ... |
src/HttpServer/logic/logic.go
... | ... | @@ -269,6 +269,9 @@ func HandlerFetchreadgold(w http.ResponseWriter, data string, uuid int) { |
269 | 269 | if err != nil { |
270 | 270 | logger.Error("HandlerFetchreadgold failed err=%v", err) |
271 | 271 | } |
272 | + | |
273 | + resp.Data.Curgoldnum = uinfo.RealGold | |
274 | + resp.Data.Getgoldnum = addgold | |
272 | 275 | //resp.Data.Goldnum = uinfo.ReadNum * READGOLDMULTI |
273 | 276 | |
274 | 277 | resp.Code = ERROR_OK | ... | ... |