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,7 +234,8 @@ type QueryReadGoldResp struct { | ||
234 | } | 234 | } |
235 | 235 | ||
236 | type FetchreadgoldData struct { | 236 | type FetchreadgoldData struct { |
237 | - Goldnum int `json:"goldnum"` | 237 | + Curgoldnum int `json:"curgoldnum"` |
238 | + Getgoldnum int `json:"getgoldnum"` | ||
238 | } | 239 | } |
239 | 240 | ||
240 | type FetchreadgoldResp struct { | 241 | type FetchreadgoldResp struct { |
src/HttpServer/logic/logic.go
@@ -269,6 +269,9 @@ func HandlerFetchreadgold(w http.ResponseWriter, data string, uuid int) { | @@ -269,6 +269,9 @@ func HandlerFetchreadgold(w http.ResponseWriter, data string, uuid int) { | ||
269 | if err != nil { | 269 | if err != nil { |
270 | logger.Error("HandlerFetchreadgold failed err=%v", err) | 270 | logger.Error("HandlerFetchreadgold failed err=%v", err) |
271 | } | 271 | } |
272 | + | ||
273 | + resp.Data.Curgoldnum = uinfo.RealGold | ||
274 | + resp.Data.Getgoldnum = addgold | ||
272 | //resp.Data.Goldnum = uinfo.ReadNum * READGOLDMULTI | 275 | //resp.Data.Goldnum = uinfo.ReadNum * READGOLDMULTI |
273 | 276 | ||
274 | resp.Code = ERROR_OK | 277 | resp.Code = ERROR_OK |