fix
This commit is contained in:
parent
1715b03476
commit
5d6cefa124
@ -65,7 +65,7 @@ func (iga *InGameApi) ServerPreOrder(c *gin.Context) {
|
||||
goodsid := c.Query("goods_id")
|
||||
sessionid := c.Query("session_id")
|
||||
sign := c.Query("sign")
|
||||
if strings.EqualFold(q5.Md5Str(accountId+goodsid+constant.GLOBAL_SALT+sessionid), strings.ToLower(sign)) {
|
||||
if !strings.EqualFold(q5.Md5Str(accountId+goodsid+constant.GLOBAL_SALT+sessionid), strings.ToLower(sign)) {
|
||||
f5.RspErr(c, 401, "sign err")
|
||||
return
|
||||
}
|
||||
@ -109,7 +109,7 @@ func (iga *InGameApi) PayDone(c *gin.Context) {
|
||||
orderid := c.Query("order_id")
|
||||
sessionid := c.Query("session_id")
|
||||
sign := c.Query("sign")
|
||||
if strings.EqualFold(q5.Md5Str(accountId+orderid+constant.GLOBAL_SALT+sessionid), strings.ToLower(sign)) {
|
||||
if !strings.EqualFold(q5.Md5Str(accountId+orderid+constant.GLOBAL_SALT+sessionid), strings.ToLower(sign)) {
|
||||
f5.RspErr(c, 401, "sign err")
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user