1
This commit is contained in:
@@ -260,8 +260,6 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
var syncType string
|
||||
storeDetail, _ := dao.GetStoreDetail(dao.GetDB(), storeID, model.VendorIDDD, "")
|
||||
api := getAPI(storeDetail.VendorOrgCode, storeID, vendorStoreID)
|
||||
globals.SugarLogger.Debug("=============", storeDetail.VendorOrgCode)
|
||||
globals.SugarLogger.Debugf("api===============%v", utils.Format4Output(api, false))
|
||||
freightId, _ := api.GetStoreBindTemp(utils.Str2Int64(vendorStoreID))
|
||||
if freightId == 0 {
|
||||
// 创建门店运费模板
|
||||
@@ -311,7 +309,6 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
SellChannel: []int64{0},
|
||||
StartSaleType: 0,
|
||||
PickupMethod: "0",
|
||||
StoreId: utils.Str2Int64(vendorStoreID),
|
||||
}
|
||||
|
||||
// 获取上传图,商品轮播图
|
||||
@@ -364,6 +361,8 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
return nil, err
|
||||
}
|
||||
param.SaleLimitId = saleLimitId
|
||||
param.StoreId = utils.Str2Int64(vendorStoreID)
|
||||
|
||||
// 抖店创建商品
|
||||
tiktokResultChildren, err := api.CreateStoreCommodity(param)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user