fix
This commit is contained in:
parent
8416be856d
commit
bfec0050a5
@ -122,7 +122,7 @@ func (this *InAppShopApi) Callback(c *gin.Context) {
|
|||||||
|
|
||||||
sign := strings.ToLower(hex.EncodeToString(mac.Sum(nil)))
|
sign := strings.ToLower(hex.EncodeToString(mac.Sum(nil)))
|
||||||
f5.GetSysLog().Info("%s, %s, %s", secret, sign, strings.ToLower(reqObj.Signature))
|
f5.GetSysLog().Info("%s, %s, %s", secret, sign, strings.ToLower(reqObj.Signature))
|
||||||
if strings.EqualFold(sign, strings.ToLower(reqObj.Signature)) {
|
if !strings.EqualFold(sign, strings.ToLower(reqObj.Signature)) {
|
||||||
f5.RspErr(c, 401, "invalid sign")
|
f5.RspErr(c, 401, "invalid sign")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user