- output msg when AccessAPI failed for ebai, mtwm and jd.

This commit is contained in:
gazebo
2018-11-28 17:18:19 +08:00
parent 0023deb3dc
commit 7810741a14
3 changed files with 9 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ import (
"sort"
"strings"
"git.rosy.net.cn/baseapi"
"git.rosy.net.cn/baseapi/platformapi"
"git.rosy.net.cn/baseapi/utils"
)
@@ -111,6 +112,7 @@ func (a *API) AccessAPI(cmd string, body map[string]interface{}) (retVal *Respon
if retVal.ErrNo == 0 {
return platformapi.ErrLevelSuccess, nil
}
baseapi.SugarLogger.Debugf("ebai AccessAPI failed, jsonResult1:%s", utils.Format4Output(jsonResult1, true))
newErr := utils.NewErrorIntCode(retVal.Error, retVal.ErrNo)
// todo 包括访问超频的很多错误都是这个错误号...
// if newErr.IntCode() == 20212 {