Commit 12370d0776fec770410201769507a88c7521e081

Authored by 陆恒
1 parent 15817d1f

提交

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
src/HttpServer/logic/function.go
... ... @@ -987,7 +987,7 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he
987 987  
988 988 if resp.Code != "0" {
989 989 logger.Error("GetCashFromSDK failed=%v", resp.Msg)
990   - return 0, err
  990 + return 0, errors.New(resp.Msg)
991 991 }
992 992  
993 993 //拉取一下新的金币值
... ... @@ -1021,7 +1021,10 @@ func GetCashList(uuid int, gameid string, channel string, start int, number int)
1021 1021 paramlist = append(paramlist, paramgameid)
1022 1022 paramlist = append(paramlist, pchannel)
1023 1023 paramlist = append(paramlist, puid)
1024   - paramlist = append(paramlist, pstart)
  1024 + if start != 0 {
  1025 + paramlist = append(paramlist, pstart)
  1026 + }
  1027 +
1025 1028 paramlist = append(paramlist, pnumber)
1026 1029  
1027 1030 sumparam := GettotalParam(paramlist)
... ...