- ebai api

This commit is contained in:
gazebo
2018-09-22 23:28:32 +08:00
parent 4da89c226e
commit 3fecfbd7a4
12 changed files with 336 additions and 10 deletions

View File

@@ -101,6 +101,9 @@ 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
}
return platformapi.ErrLevelCodeIsNotOK, newErr
})
return retVal, err