- log elm api failed info.

This commit is contained in:
gazebo
2018-08-22 17:12:42 +08:00
parent 4813ff4ce6
commit a423ba2eed

View File

@@ -11,6 +11,8 @@ import (
"strings" "strings"
"sync" "sync"
"git.rosy.net.cn/baseapi"
"git.rosy.net.cn/baseapi/platformapi" "git.rosy.net.cn/baseapi/platformapi"
"git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/baseapi/utils"
) )
@@ -179,6 +181,7 @@ func (a *API) AccessAPI(action string, params map[string]interface{}) (retVal *R
} else if code == "SERVER_ERROR" || code == "BIZ_SYSTEM_ERROR" || code == "BIZ_1006" || code == "BUSINESS_ERROR" { } else if code == "SERVER_ERROR" || code == "BIZ_SYSTEM_ERROR" || code == "BIZ_1006" || code == "BUSINESS_ERROR" {
return platformapi.ErrLevelRecoverableErr, newErr return platformapi.ErrLevelRecoverableErr, newErr
} else { } else {
baseapi.SugarLogger.Debugf("AccessAPI elmapi failed, payload:%v jsonResult1:%v", pl, jsonResult1)
return platformapi.ErrLevelCodeIsNotOK, newErr return platformapi.ErrLevelCodeIsNotOK, newErr
} }
}) })