1
This commit is contained in:
@@ -234,7 +234,6 @@ func (a *API) AccessAPI2(apiStr string, jdParams map[string]interface{}, traceIn
|
||||
} else if _, ok := canRetryCodes[code]; ok {
|
||||
return platformapi.ErrLevelRecoverableErr, newErr
|
||||
} else {
|
||||
baseapi.SugarLogger.Debugf("jd AccessAPI failed, jsonResult1:%s", utils.Format4Output(jsonResult1, true))
|
||||
return platformapi.ErrLevelCodeIsNotOK, newErr
|
||||
}
|
||||
})
|
||||
|
||||
@@ -661,7 +661,6 @@ func (a *API) BatchAddSku(batchSkuRequestList []*CreateByUpcParam) (pairs []*Cre
|
||||
"batchSkuRequestList": batchSkuRequestList,
|
||||
}, nil, nil, genNoPageResultParser("code", "result", "detail", "0"))
|
||||
if err == nil {
|
||||
// globals.SugarLogger.Debug(utils.Format4Output(result, false))
|
||||
// todo 这个API在找不到UPC创建失败时,code也是0,底层不能判断失败
|
||||
if result2, ok := result.([]interface{}); ok && len(result2) > 0 {
|
||||
detail := utils.Slice2MapSlice(result2)
|
||||
|
||||
@@ -450,7 +450,6 @@ func (a *API) AccessStorePage2(fullURL string, params map[string]interface{}, is
|
||||
} else if _, ok := pageCanRetryCodes[code]; ok {
|
||||
return platformapi.ErrLevelRecoverableErr, newErr
|
||||
} else {
|
||||
baseapi.SugarLogger.Debugf("jd AccessStorePage failed, jsonResult1:%s", utils.Format4Output(jsonResult1, true))
|
||||
return platformapi.ErrLevelCodeIsNotOK, newErr
|
||||
}
|
||||
})
|
||||
@@ -503,7 +502,6 @@ func (a *API) AccessStorePage3(fullURL string, params map[string]interface{}, re
|
||||
} else if _, ok := pageCanRetryCodes[code]; ok {
|
||||
return platformapi.ErrLevelRecoverableErr, newErr
|
||||
} else {
|
||||
baseapi.SugarLogger.Debugf("jd AccessStorePage failed, jsonResult1:%s", utils.Format4Output(jsonResult1, true))
|
||||
return platformapi.ErrLevelCodeIsNotOK, newErr
|
||||
}
|
||||
})
|
||||
@@ -559,7 +557,6 @@ func (a *API) AccessStorePage4(fullURL string, values string) (retVal interface{
|
||||
} else if _, ok := pageCanRetryCodes[code]; ok {
|
||||
return platformapi.ErrLevelRecoverableErr, newErr
|
||||
} else {
|
||||
baseapi.SugarLogger.Debugf("jd AccessStorePage failed, jsonResult1:%s", utils.Format4Output(jsonResult1, true))
|
||||
return platformapi.ErrLevelCodeIsNotOK, newErr
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user