1
This commit is contained in:
@@ -132,14 +132,17 @@ func CopyEBaiToEBai(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail,
|
||||
}
|
||||
}
|
||||
case 3:
|
||||
i := 1
|
||||
skuIdOffset := 0
|
||||
|
||||
for {
|
||||
// 同步商品
|
||||
fromFoodList, err1 := api.SkuList(utils.Int2Str(fromStore.ID), &ebaiapi.SkuListParams{
|
||||
i := 1
|
||||
skuIdOffset := 0
|
||||
param := &ebaiapi.SkuListParams{
|
||||
Page: i,
|
||||
SkuIdOffset: skuIdOffset,
|
||||
})
|
||||
}
|
||||
|
||||
// 同步商品
|
||||
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), i)
|
||||
}
|
||||
@@ -183,7 +186,7 @@ func BatchInitSkuEBai2EBai(ctx *jxcontext.Context, fromSku []*ebaiapi.SkuInfo, t
|
||||
params["name"] = storeSku.Name
|
||||
params["cat3_id"] = storeSku.CateId
|
||||
params["category_id"] = VendorCategoryIDMap[utils.Str2Int64(storeSku.CustomCatList[0].CustomCatID)]
|
||||
params["rtf"] = storeSku.Rtf
|
||||
params["desc"] = storeSku.Desc
|
||||
params["left_num"] = storeSku.LeftNum
|
||||
params["process_type"] = storeSku.ProcessType
|
||||
params["process_detail"] = storeSku.ProcessDetail
|
||||
|
||||
Reference in New Issue
Block a user