- add debug msg for jdapi level2 error.
This commit is contained in:
@@ -220,6 +220,7 @@ func (a *API) AccessAPINoPage(apiStr string, jdParams map[string]interface{}, ke
|
||||
if err == nil {
|
||||
return utils.DictKeysMan(result, keyToRemove, keyToKeep), nil
|
||||
}
|
||||
baseapi.SugarLogger.Infof("AccessAPINoPage failed, data:%s, error:%v", utils.Format4Output(jsonResult, true), err)
|
||||
return result, err
|
||||
}
|
||||
|
||||
@@ -314,7 +315,9 @@ func (a *API) AccessAPIHavePage(apiStr string, jdParams map[string]interface{},
|
||||
|
||||
innerCode := forceInnerCode2Str(data["code"])
|
||||
if innerCode != "0" {
|
||||
return nil, totalCount, utils.NewErrorCode(getErrMsgFromData(data), innerCode, 1)
|
||||
err2 := utils.NewErrorCode(getErrMsgFromData(data), innerCode, 1)
|
||||
baseapi.SugarLogger.Infof("AccessAPIHavePage failed, data:%s, error:%v", utils.Format4Output(jsonResult, true), err2)
|
||||
return nil, totalCount, err2
|
||||
}
|
||||
|
||||
inResult, totalCount2, err := pageResultParser(data, totalCount)
|
||||
|
||||
Reference in New Issue
Block a user