1
This commit is contained in:
@@ -649,10 +649,9 @@ func BatchInitSkuMT2TT(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, fromS
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 是否支持七天无理由
|
// 是否支持七天无理由
|
||||||
if toApi.GetProductUpdateRule(param.CategoryLeafId) {
|
isAfterSale, rule := toApi.GetProductUpdateRule(param.CategoryLeafId)
|
||||||
param.Supply7dayReturn = 1
|
if isAfterSale {
|
||||||
} else {
|
param.AfterSaleService = map[string]string{"supply_day_return_selector": fmt.Sprintf("%s", rule)}
|
||||||
param.Supply7dayReturn = 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// weight_unit 目前抖音只支持g和kg两种
|
// weight_unit 目前抖音只支持g和kg两种
|
||||||
|
|||||||
@@ -285,8 +285,9 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
|||||||
ProductFormatNew: param.ProductFormatNew,
|
ProductFormatNew: param.ProductFormatNew,
|
||||||
}
|
}
|
||||||
// 是否支持七天无理由
|
// 是否支持七天无理由
|
||||||
if api.GetProductUpdateRule(param.CategoryLeafId) {
|
isAfterSale, rule := api.GetProductUpdateRule(param.CategoryLeafId)
|
||||||
param.AfterSaleService = map[string]string{"supply_day_return_selector": "7天"}
|
if isAfterSale {
|
||||||
|
param.AfterSaleService = map[string]string{"supply_day_return_selector": fmt.Sprintf("%s", rule)}
|
||||||
}
|
}
|
||||||
updateParam.Pic = param.Pic
|
updateParam.Pic = param.Pic
|
||||||
updateParam.Description = param.Description
|
updateParam.Description = param.Description
|
||||||
@@ -385,10 +386,10 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
|||||||
param.CategoryLeafId = vendorCategoryId
|
param.CategoryLeafId = vendorCategoryId
|
||||||
}
|
}
|
||||||
|
|
||||||
if api.GetProductUpdateRule(param.CategoryLeafId) {
|
isAfterSale, rule := api.GetProductUpdateRule(param.CategoryLeafId)
|
||||||
param.AfterSaleService = map[string]string{"supply_day_return_selector": "7天"}
|
if isAfterSale {
|
||||||
|
param.AfterSaleService = map[string]string{"supply_day_return_selector": fmt.Sprintf("%s", rule)}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取主商品id
|
// 获取主商品id
|
||||||
var mainIdInt int64
|
var mainIdInt int64
|
||||||
if storeSku.VendorMainId == "" {
|
if storeSku.VendorMainId == "" {
|
||||||
@@ -507,9 +508,9 @@ func makeMainProductSku(db *dao.DaoDB, api *tiktokShop.API, storeSku *dao.StoreS
|
|||||||
// param.CategoryLeafId = storeSku.VendorVendorCatID
|
// param.CategoryLeafId = storeSku.VendorVendorCatID
|
||||||
//}
|
//}
|
||||||
|
|
||||||
// 是否支持七天无理由
|
isAfterSale, rule := api.GetProductUpdateRule(param.CategoryLeafId)
|
||||||
if api.GetProductUpdateRule(param.CategoryLeafId) {
|
if isAfterSale {
|
||||||
param.AfterSaleService = map[string]string{"supply_day_return_selector": "7天"}
|
param.AfterSaleService = map[string]string{"supply_day_return_selector": fmt.Sprintf("%s", rule)}
|
||||||
}
|
}
|
||||||
|
|
||||||
// weight_unit 目前抖音只支持g和kg两种
|
// weight_unit 目前抖音只支持g和kg两种
|
||||||
|
|||||||
Reference in New Issue
Block a user