diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 8a68270..3132bbb 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -567,13 +567,15 @@ func HandlerGetcashrecord(w http.ResponseWriter, data string, uuid int) { for { list, err := GetWithDrawList(uuid) if err != nil || list == nil { - logger.Error("HandlerGetcashrecord failed err=%v", err) + /*logger.Error("HandlerGetcashrecord failed err=%v", err) resp.Message = "服务器错误" resp.Code = ERROR_SRV_ERROR - break + break*/ } - resp.Data.Withdata = append(resp.Data.Withdata, list.Withdata...) + if list != nil { + resp.Data.Withdata = append(resp.Data.Withdata, list.Withdata...) + } resp.Code = ERROR_OK break -- libgit2 0.21.0