- fix CallbackDeliveryStatusMsg.OpTime to String.
This commit is contained in:
@@ -35,7 +35,7 @@ type CallbackDeliveryStatusMsg struct {
|
||||
Remark string `json:"remark"`
|
||||
FailType string `json:"failType"`
|
||||
CreatePin string `json:"createPin"`
|
||||
OpTime int64 `json:"opTime"`
|
||||
OpTime string `json:"opTime"`
|
||||
InputTime string `json:"inputTime"`
|
||||
}
|
||||
|
||||
@@ -57,14 +57,8 @@ func (a *API) unmarshalData(strData string, msg interface{}) (callbackResponse *
|
||||
}
|
||||
|
||||
func (a *API) CheckCallbackValidation(values url.Values) (callbackResponse *CallbackResponse) {
|
||||
mapData := make(map[string]interface{})
|
||||
mapData["token"] = values.Get("token")
|
||||
mapData["app_key"] = values.Get("app_key")
|
||||
mapData["timestamp"] = values.Get("timestamp")
|
||||
mapData["format"] = values.Get("format")
|
||||
mapData := utils.URLValues2Map(values)
|
||||
mapData["app_secret"] = a.appSecret
|
||||
mapData["v"] = values.Get("v")
|
||||
mapData[paramJson] = values.Get(paramJson)
|
||||
sign := a.signParams(mapData)
|
||||
if sign != values.Get(signKey) {
|
||||
baseapi.SugarLogger.Infof("Signature is not ok, mine:%v, get:%v", sign, values.Get(signKey))
|
||||
|
||||
Reference in New Issue
Block a user