Commit 8db44b7ba5fcf6a5e8adc4b587467f4118459430
1 parent
d47147d3
Exists in
master
提交
Showing
2 changed files
with
7 additions
and
4 deletions
Show diff stats
src/HttpServer/logic/function.go
@@ -907,7 +907,8 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he | @@ -907,7 +907,8 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he | ||
907 | phead := "headurl=" + headurl | 907 | phead := "headurl=" + headurl |
908 | pnickname := "nickname=" + nickname | 908 | pnickname := "nickname=" + nickname |
909 | popenid := "openid=" + openid | 909 | popenid := "openid=" + openid |
910 | - pmoney := "money=" + strconv.Itoa(goldnum) | 910 | + money := goldnum/100 |
911 | + pmoney := "money=" + strconv.Itoa(money) | ||
911 | ptype := "typ=" + "6" //微信 | 912 | ptype := "typ=" + "6" //微信 |
912 | ped := "editcoin=1" | 913 | ped := "editcoin=1" |
913 | pcheco := "checkcoin=" + strconv.Itoa(checkcoin) | 914 | pcheco := "checkcoin=" + strconv.Itoa(checkcoin) |
src/HttpServer/logic/logic.go
@@ -332,7 +332,7 @@ func HandlerGetcashrecord(w http.ResponseWriter, data string, uniqueuuid, gameid | @@ -332,7 +332,7 @@ func HandlerGetcashrecord(w http.ResponseWriter, data string, uniqueuuid, gameid | ||
332 | resp.Message = "success" | 332 | resp.Message = "success" |
333 | for { | 333 | for { |
334 | 334 | ||
335 | - uinfo, err := GetUserInfo(strconv.Itoa(uuid)) | 335 | + uinfo, err := GetUserInfo(uniqueuuid) |
336 | if err != nil || uinfo == nil { | 336 | if err != nil || uinfo == nil { |
337 | logger.Error("HandlerGetcashrecord getuserinfo failed=%v", err) | 337 | logger.Error("HandlerGetcashrecord getuserinfo failed=%v", err) |
338 | resp.Code = 1 | 338 | resp.Code = 1 |
@@ -372,7 +372,9 @@ func HandlerGetcash(w http.ResponseWriter, data string, uniqueuuid, gameid, chan | @@ -372,7 +372,9 @@ func HandlerGetcash(w http.ResponseWriter, data string, uniqueuuid, gameid, chan | ||
372 | resp.Message = "json failed" | 372 | resp.Message = "json failed" |
373 | break | 373 | break |
374 | } | 374 | } |
375 | - uinfo, err := GetUserInfo(strconv.Itoa(uuid)) | 375 | + |
376 | + uniqueid := strconv.Itoa(uuid) + channel | ||
377 | + uinfo, err := GetUserInfo(uniqueid) | ||
376 | if err != nil || uinfo == nil { | 378 | if err != nil || uinfo == nil { |
377 | logger.Error("HandlerGetcash getuserinfo failed=%v", err) | 379 | logger.Error("HandlerGetcash getuserinfo failed=%v", err) |
378 | resp.Code = 1 | 380 | resp.Code = 1 |
@@ -445,7 +447,7 @@ func HandlerGetcash(w http.ResponseWriter, data string, uniqueuuid, gameid, chan | @@ -445,7 +447,7 @@ func HandlerGetcash(w http.ResponseWriter, data string, uniqueuuid, gameid, chan | ||
445 | resp.Data.Walletgold = gold | 447 | resp.Data.Walletgold = gold |
446 | 448 | ||
447 | //保存 | 449 | //保存 |
448 | - SaveUserInfo(uinfo, strconv.Itoa(uuid)) | 450 | + SaveUserInfo(uinfo, uniqueid) |
449 | 451 | ||
450 | break | 452 | break |
451 | 453 |