Commit c543d57fa36af3b6099c8de36993e0c1207ebc6c

Authored by 陆恒
1 parent 0906c0c5

提交

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