This commit is contained in:
邹宗楠
2025-04-27 15:30:38 +08:00
parent 16a67501f3
commit 2de5f20143

View File

@@ -356,12 +356,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
PickupMethod: "0",
}
param.Name = checkNameLenght(param.Name)
afterSaleService := api.GetProductUpdateRule(param.CategoryLeafId)
globals.SugarLogger.Debugf("----------afterSaleService-%s", utils.Format4Output(afterSaleService, false))
if afterSaleService {
param.AfterSaleService = map[string]string{"supply_day_return_selector": "7天"}
}
globals.SugarLogger.Debugf("----------param1-%s", utils.Format4Output(param, false))
// 暂时只考虑修改白底图,提高效率.其余图片不做修改
img, descImg, whiteImg, err := GetTiktokImgList(api, utils.Int2Str(storeSku.StoreID), storeSku.SkuID, storeSku.DescImg, storeSku.Img, []string{storeSku.Img2, storeSku.Img3, storeSku.Img4, storeSku.Img5})
if err != nil {
@@ -390,6 +385,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天"}
}
// 获取主商品id
var mainIdInt int64
if storeSku.VendorMainId == "" {