This commit is contained in:
yangduo 2024-12-04 18:00:20 +08:00
parent 8416be856d
commit bfec0050a5

View File

@ -122,7 +122,7 @@ func (this *InAppShopApi) Callback(c *gin.Context) {
sign := strings.ToLower(hex.EncodeToString(mac.Sum(nil)))
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")
return
}