- business msg added to error
This commit is contained in:
@@ -66,6 +66,7 @@ func (j *JDAPI) CheckRequestValidation(request *http.Request) (callbackResponse
|
||||
|
||||
sign := j.signParams(mapData)
|
||||
if sign != request.FormValue(signKey) {
|
||||
j.sugarLogger.Infof("Signature is not ok, mine:%v, get:%v", sign, request.FormValue(signKey))
|
||||
return &JDCallbackResponse{
|
||||
Code: JDerrorCodeInvalidSign,
|
||||
Msg: "signature is invalid",
|
||||
|
||||
@@ -190,7 +190,7 @@ func (j *JDAPI) AccessJDQuery(apiStr string, jdParams map[string]string) (retVal
|
||||
} else if _, ok := canRetryCodes[code]; ok {
|
||||
return common.PAErrorLevelRecoverable, nil
|
||||
} else {
|
||||
return code, nil
|
||||
return common.PAErrorLevelGeneralFail, utils.NewErrorCode(jsonResult1["msg"].(string), code)
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user