aa
This commit is contained in:
@@ -96,6 +96,7 @@ func (a *API) GetCallbackMsg(request *http.Request) (msg *CallbackMsg, callbackR
|
||||
fullURL := strings.TrimRight(a.callbackURL+request.URL.Path, "/")
|
||||
sign := a.signParams(fullURL+"?", data)
|
||||
if sign != dataSign.(string) {
|
||||
baseapi.SugarLogger.Debugf("mtwm GetCallbackMsg my sign:%v, data sign:%v", fullURL, a.callbackURL, request.URL.Path)
|
||||
baseapi.SugarLogger.Debugf("mtwm GetCallbackMsg my sign:%v, data sign:%v", sign, dataSign.(string))
|
||||
callbackResponse = SignatureIsNotOk
|
||||
} else {
|
||||
@@ -132,6 +133,9 @@ func (a *API) GetCallbackMsg(request *http.Request) (msg *CallbackMsg, callbackR
|
||||
msg.Data = refundData
|
||||
}
|
||||
}
|
||||
if msg.Cmd == MsgTypeStoreStatusChanged {
|
||||
baseapi.SugarLogger.Debugf("mtwm StoreStatusChanged test 2", utils.Format4Output(msg, false))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
callbackResponse = SuccessResponse // 美团外卖PING消息没有sign
|
||||
|
||||
Reference in New Issue
Block a user