1
This commit is contained in:
@@ -99,12 +99,11 @@ func CopyEBaiToEBai(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail,
|
|||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
case 3:
|
case 3:
|
||||||
i := 0
|
i := 1
|
||||||
for {
|
for {
|
||||||
// 同步商品
|
// 同步商品
|
||||||
fromFoodList, err1 := api.SkuList(utils.Int2Str(fromStore.ID), &ebaiapi.SkuListParams{
|
fromFoodList, err1 := api.SkuList(utils.Int2Str(fromStore.ID), &ebaiapi.SkuListParams{
|
||||||
Page: 1,
|
Page: i,
|
||||||
SkuIdOffset: i,
|
|
||||||
})
|
})
|
||||||
if len(fromFoodList.List) == 0 || fromFoodList == nil {
|
if len(fromFoodList.List) == 0 || fromFoodList == nil {
|
||||||
return nil, fmt.Errorf("fromFoodList 为空 %s ,i:= %d", utils.Format4Output(err1, false), i)
|
return nil, fmt.Errorf("fromFoodList 为空 %s ,i:= %d", utils.Format4Output(err1, false), i)
|
||||||
@@ -113,7 +112,7 @@ func CopyEBaiToEBai(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail,
|
|||||||
if err = BatchInitSkuEBai2EBai(ctx, fromFoodList.List, api, utils.Int2Str(toStore.ID), VendorCategoryIDMap); err != nil {
|
if err = BatchInitSkuEBai2EBai(ctx, fromFoodList.List, api, utils.Int2Str(toStore.ID), VendorCategoryIDMap); err != nil {
|
||||||
globals.SugarLogger.Debugf("BatchInitData : %s", utils.Format4Output(err, false))
|
globals.SugarLogger.Debugf("BatchInitData : %s", utils.Format4Output(err, false))
|
||||||
}
|
}
|
||||||
i = fromFoodList.SkuIdOffset
|
i = i + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user