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