Commit 58f41a86c6b20f4502a8285f9a8c0d91e7eba727
1 parent
915358c8
Exists in
master
and in
4 other branches
提交
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/HttpServer/logic/function.go
| ... | ... | @@ -3,6 +3,7 @@ package logic |
| 3 | 3 | import ( |
| 4 | 4 | "HttpServer/jsonconf" |
| 5 | 5 | "HttpServer/redishandler" |
| 6 | + "common/logger" | |
| 6 | 7 | "common/redis" |
| 7 | 8 | "encoding/json" |
| 8 | 9 | "net/http" |
| ... | ... | @@ -177,7 +178,7 @@ func GetUserData(uuid int, resp *UserLoginResp) error{ |
| 177 | 178 | //获取提现记录 |
| 178 | 179 | func GetWithDrawList(uuid int) (*WithDrawList,error) { |
| 179 | 180 | var list *WithDrawList |
| 180 | - list = nil | |
| 181 | + list = new(WithDrawList) | |
| 181 | 182 | liststr,err := redishandler.GetRedisClient().HGet(redis.USER_WITHDRAW_RECORDLIST,strconv.Itoa(uuid)) |
| 182 | 183 | if err != nil { |
| 183 | 184 | return nil,err |
| ... | ... | @@ -221,6 +222,7 @@ func AddWithDrawList(uuid int,data *WithDrawRecord) error { |
| 221 | 222 | |
| 222 | 223 | list,err := GetWithDrawList(uuid) |
| 223 | 224 | if err != nil || list == nil{ |
| 225 | + logger.Error("AddWithDrawList err=%v",err) | |
| 224 | 226 | return err |
| 225 | 227 | } |
| 226 | 228 | list.Withdata = append(list.Withdata,*data) | ... | ... |