Commit 9cb5482f6680961d7e207b4a8f287beda14247b5
1 parent
3258476f
Exists in
master
and in
4 other branches
修复提现列表问题
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
src/HttpServer/logic/logic.go
| @@ -567,13 +567,15 @@ func HandlerGetcashrecord(w http.ResponseWriter, data string, uuid int) { | @@ -567,13 +567,15 @@ func HandlerGetcashrecord(w http.ResponseWriter, data string, uuid int) { | ||
| 567 | for { | 567 | for { |
| 568 | list, err := GetWithDrawList(uuid) | 568 | list, err := GetWithDrawList(uuid) |
| 569 | if err != nil || list == nil { | 569 | if err != nil || list == nil { |
| 570 | - logger.Error("HandlerGetcashrecord failed err=%v", err) | 570 | + /*logger.Error("HandlerGetcashrecord failed err=%v", err) |
| 571 | resp.Message = "服务器错误" | 571 | resp.Message = "服务器错误" |
| 572 | resp.Code = ERROR_SRV_ERROR | 572 | resp.Code = ERROR_SRV_ERROR |
| 573 | - break | 573 | + break*/ |
| 574 | } | 574 | } |
| 575 | 575 | ||
| 576 | - resp.Data.Withdata = append(resp.Data.Withdata, list.Withdata...) | 576 | + if list != nil { |
| 577 | + resp.Data.Withdata = append(resp.Data.Withdata, list.Withdata...) | ||
| 578 | + } | ||
| 577 | 579 | ||
| 578 | resp.Code = ERROR_OK | 580 | resp.Code = ERROR_OK |
| 579 | break | 581 | break |