Commit 58f41a86c6b20f4502a8285f9a8c0d91e7eba727

Authored by 陆恒
1 parent 915358c8

提交

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,6 +3,7 @@ package logic
3 import ( 3 import (
4 "HttpServer/jsonconf" 4 "HttpServer/jsonconf"
5 "HttpServer/redishandler" 5 "HttpServer/redishandler"
  6 + "common/logger"
6 "common/redis" 7 "common/redis"
7 "encoding/json" 8 "encoding/json"
8 "net/http" 9 "net/http"
@@ -177,7 +178,7 @@ func GetUserData(uuid int, resp *UserLoginResp) error{ @@ -177,7 +178,7 @@ func GetUserData(uuid int, resp *UserLoginResp) error{
177 //获取提现记录 178 //获取提现记录
178 func GetWithDrawList(uuid int) (*WithDrawList,error) { 179 func GetWithDrawList(uuid int) (*WithDrawList,error) {
179 var list *WithDrawList 180 var list *WithDrawList
180 - list = nil 181 + list = new(WithDrawList)
181 liststr,err := redishandler.GetRedisClient().HGet(redis.USER_WITHDRAW_RECORDLIST,strconv.Itoa(uuid)) 182 liststr,err := redishandler.GetRedisClient().HGet(redis.USER_WITHDRAW_RECORDLIST,strconv.Itoa(uuid))
182 if err != nil { 183 if err != nil {
183 return nil,err 184 return nil,err
@@ -221,6 +222,7 @@ func AddWithDrawList(uuid int,data *WithDrawRecord) error { @@ -221,6 +222,7 @@ func AddWithDrawList(uuid int,data *WithDrawRecord) error {
221 222
222 list,err := GetWithDrawList(uuid) 223 list,err := GetWithDrawList(uuid)
223 if err != nil || list == nil{ 224 if err != nil || list == nil{
  225 + logger.Error("AddWithDrawList err=%v",err)
224 return err 226 return err
225 } 227 }
226 list.Withdata = append(list.Withdata,*data) 228 list.Withdata = append(list.Withdata,*data)