up
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"github.com/clbanning/mxj"
|
"github.com/clbanning/mxj"
|
||||||
"github.com/nanjishidu/gomini/gocrypto"
|
"github.com/nanjishidu/gomini/gocrypto"
|
||||||
)
|
)
|
||||||
@@ -175,6 +176,7 @@ func (a *API) getCallbackMsg(msgBody string) (msg *CallbackMsg, callbackResponse
|
|||||||
sign := utils.Interface2String(mapData[sigKey])
|
sign := utils.Interface2String(mapData[sigKey])
|
||||||
desiredSign := a.signParam(sigType, mapData)
|
desiredSign := a.signParam(sigType, mapData)
|
||||||
if desiredSign != sign {
|
if desiredSign != sign {
|
||||||
|
globals.SugarLogger.Debugf("transactionID:%s, sigType:%s, desiredSign:%s <> sign:%s", transactionID, sigType, desiredSign, sign)
|
||||||
return nil, Err2CallbackResponse(fmt.Errorf("desiredSign:%s <> sign:%s", desiredSign, sign), "")
|
return nil, Err2CallbackResponse(fmt.Errorf("desiredSign:%s <> sign:%s", desiredSign, sign), "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user