1
This commit is contained in:
@@ -141,16 +141,11 @@ func CopyEBaiToEBai(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail,
|
||||
|
||||
for {
|
||||
// 同步商品
|
||||
fromFoodList, err1 := api.SkuList(utils.Int2Str(fromStore.ID), param)
|
||||
if len(fromFoodList.List) == 0 || fromFoodList == nil || len(fromFoodList.List) < 100 {
|
||||
return nil, fmt.Errorf("fromFoodList 为空 %s ,i:= %d", utils.Format4Output(err1, false), param.Page)
|
||||
}
|
||||
|
||||
foodListData = append(foodListData, fromFoodList.List...)
|
||||
fromFoodList, _ := api.SkuList(utils.Int2Str(fromStore.ID), param)
|
||||
if len(fromFoodList.List) < 100 {
|
||||
break
|
||||
}
|
||||
globals.SugarLogger.Debugf("---------len:=%d", len(fromFoodList.List))
|
||||
foodListData = append(foodListData, fromFoodList.List...)
|
||||
param.Page += 1
|
||||
skuIdOffset = fromFoodList.SkuIdOffset
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user