Commit d429148099a20ba9b634eab184b7edb448cb74e8
1 parent
e62cb5a6
Exists in
master
提交
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
src/HttpServer/logic/function.go
@@ -907,8 +907,8 @@ func GetCashFromSDK(uuid int, goldnum int, gameid, channel, openid, nickname, he | @@ -907,8 +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 | - money := goldnum/100 | ||
911 | - pmoney := "money=" + strconv.Itoa(money) | 910 | + //money := goldnum/100 |
911 | + pmoney := "money=" + strconv.Itoa(goldnum) | ||
912 | ptype := "typ=" + "6" //微信 | 912 | ptype := "typ=" + "6" //微信 |
913 | ped := "editcoin=1" | 913 | ped := "editcoin=1" |
914 | pcheco := "checkcoin=" + strconv.Itoa(checkcoin) | 914 | pcheco := "checkcoin=" + strconv.Itoa(checkcoin) |
src/HttpServer/logic/logic.go
@@ -431,7 +431,7 @@ func HandlerGetcash(w http.ResponseWriter, data string, uniqueuuid, gameid, chan | @@ -431,7 +431,7 @@ func HandlerGetcash(w http.ResponseWriter, data string, uniqueuuid, gameid, chan | ||
431 | } | 431 | } |
432 | 432 | ||
433 | checkcoin := 2 //不开启自动审核 | 433 | checkcoin := 2 //不开启自动审核 |
434 | - drawnum := int(rdata.Money * 10000) | 434 | + drawnum := int(rdata.Money * 100) |
435 | gold, err := GetCashFromSDK(uuid, drawnum, gameid, channel, rdata.Openid, uinfo.NickName, uinfo.HeadUrl, rdata.Ver, checkcoin) | 435 | gold, err := GetCashFromSDK(uuid, drawnum, gameid, channel, rdata.Openid, uinfo.NickName, uinfo.HeadUrl, rdata.Ver, checkcoin) |
436 | if err != nil { | 436 | if err != nil { |
437 | logger.Error("HandlerGetcash GetCashFromSDK failed failed=%v", err) | 437 | logger.Error("HandlerGetcash GetCashFromSDK failed failed=%v", err) |