1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user