- ebai callback.
This commit is contained in:
@@ -17,6 +17,13 @@ const (
|
||||
|
||||
signKey = "sign"
|
||||
)
|
||||
const (
|
||||
CmdOrderCreate = "order.create"
|
||||
CmdOrderDeliveryStatus = "order.devlieryStatus.push"
|
||||
CmdOrderPartRefund = "order.partrefund.push"
|
||||
CmdOrderStatus = "order.status.push"
|
||||
CmdOrderUserCancel = "order.user.cancel"
|
||||
)
|
||||
|
||||
type ResponseResult struct {
|
||||
ErrNo int `json:"errno"`
|
||||
@@ -101,9 +108,10 @@ func (a *API) AccessAPI(cmd string, body map[string]interface{}) (retVal *Respon
|
||||
return platformapi.ErrLevelSuccess, nil
|
||||
}
|
||||
newErr := utils.NewErrorIntCode(retVal.Error, retVal.ErrNo)
|
||||
if newErr.IntCode() == 20212 {
|
||||
return platformapi.ErrLevelExceedLimit, newErr
|
||||
}
|
||||
// todo 包括访问超频的很多错误都是这个错误号...
|
||||
// if newErr.IntCode() == 20212 {
|
||||
// return platformapi.ErrLevelExceedLimit, newErr
|
||||
// }
|
||||
return platformapi.ErrLevelCodeIsNotOK, newErr
|
||||
})
|
||||
return retVal, err
|
||||
|
||||
Reference in New Issue
Block a user