- ebai callback.

This commit is contained in:
gazebo
2018-09-27 17:53:03 +08:00
parent a4fb6880de
commit 303bca1193
4 changed files with 221 additions and 3 deletions

View File

@@ -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