1
This commit is contained in:
@@ -692,8 +692,6 @@ func (a *API) CreateSubProduct(mainProductId int64, storeId int64) (int64, error
|
||||
request.Param.StoreId = storeId
|
||||
|
||||
result, err := request.Execute(a.accessTokenObj)
|
||||
globals.SugarLogger.Debugf("=========result := %s", utils.Format4Output(result, false))
|
||||
globals.SugarLogger.Debugf("=========result := %s", utils.Format4Output(err, false))
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ func (a *API) BatchUploadImages(imgs []Imgs) (map[string]material_batchUploadIma
|
||||
return nil, err
|
||||
}
|
||||
if result.Code != RequestSuccessCode {
|
||||
return nil, errors.New("==============logId" + result.LogId + ":" + result.SubMsg)
|
||||
return nil, errors.New("logId" + result.LogId + ":" + result.SubMsg)
|
||||
}
|
||||
if len(result.Data.SuccessMap) > 0 {
|
||||
return result.Data.SuccessMap, nil
|
||||
|
||||
Reference in New Issue
Block a user