- 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"
"sync"
"git.rosy.net.cn/baseapi"
"git.rosy.net.cn/baseapi/platformapi"
"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" {
return platformapi.ErrLevelRecoverableErr, newErr
} else {
baseapi.SugarLogger.Debugf("AccessAPI elmapi failed, payload:%v jsonResult1:%v", pl, jsonResult1)
return platformapi.ErrLevelCodeIsNotOK, newErr
}
})