Commit e66d84181fdb6332ac14b61d8984e77952811cb3
1 parent
60a1a55c
Exists in
master
提交
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/HttpServer/logic/function.go
... | ... | @@ -214,7 +214,7 @@ func (u *UserData) CalcRandRedBagNum() float32 { |
214 | 214 | //加红包接口 |
215 | 215 | func (u *UserData) AddRedPackect(num float32, atype int) (int, error) { |
216 | 216 | SERVERKEY := conf.GetCoinConf().Key |
217 | - goldnum := int(num * 100) | |
217 | + goldnum := int(num * 10000) | |
218 | 218 | var paramlist []string |
219 | 219 | sign_type := "sign_type=md5" |
220 | 220 | paramlist = append(paramlist, sign_type) | ... | ... |
src/HttpServer/logic/logic.go
... | ... | @@ -764,7 +764,7 @@ func HandlerGetcash(w http.ResponseWriter, data string, uuid int) { |
764 | 764 | } |
765 | 765 | |
766 | 766 | checkcoin := 2 //不开启自动审核 |
767 | - drawnum := int(rdata.Money * 10000) | |
767 | + drawnum := int(rdata.Money * 100) | |
768 | 768 | gold, err := GetCashFromSDK(uuid, drawnum, uinfo.Gameid, uinfo.Channel, rdata.Openid, uinfo.NickName, uinfo.Head, rdata.Ver, checkcoin) |
769 | 769 | if err != nil { |
770 | 770 | logger.Error("HandlerGetcash GetCashFromSDK failed failed=%v", err) | ... | ... |