This commit is contained in:
邹宗楠
2025-08-18 18:53:30 +08:00
parent 3f3dc97058
commit d0a669c7a4
3 changed files with 13 additions and 17 deletions

View File

@@ -21,6 +21,7 @@ func (a *API) EventSignChange(c *http.Request) (*CallbackResponse, []byte) {
if beego.BConfig.RunMode == "jxgy" || beego.BConfig.RunMode == "jxpet" {
return CallbackResponseErr(true), body
}
return &CallbackResponse{Code: CallbackSuccessCode, Msg: CallbackSuccess}, body
signParam := a.appKey + string(body) + a.appSecret
sign := fmt.Sprintf("%X", md5.Sum([]byte(signParam)))
return CallbackResponseErr(sign != c.Header.Get("event-sign")), body