This commit is contained in:
邹宗楠
2025-04-28 11:38:13 +08:00
parent 40e8c79ff1
commit ed5e52628a
2 changed files with 12 additions and 12 deletions

View File

@@ -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两种

View File

@@ -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两种