- fix unittest bug caused by sugarLogger.
This commit is contained in:
@@ -149,8 +149,8 @@ func (e *ELMAPI) AccessELM(action string, params map[string]interface{}) (retVal
|
||||
if errinfoMap == nil {
|
||||
return common.PAErrorLevelSuccess, nil
|
||||
}
|
||||
baseapi.SugarLogger.Debug(jsonResult1)
|
||||
errCode := errinfoMap["code"].(string)
|
||||
|
||||
if errCode == "EXCEED_LIMIT" {
|
||||
return common.PAErrorLevelExceedLimit, nil
|
||||
} else if errCode == "SERVER_ERROR" || errCode == "BIZ_SYSTEM_ERROR" || errCode == "BIZ_1006" || errCode == "BUSINESS_ERROR" {
|
||||
|
||||
Reference in New Issue
Block a user