1
This commit is contained in:
@@ -356,12 +356,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
|||||||
PickupMethod: "0",
|
PickupMethod: "0",
|
||||||
}
|
}
|
||||||
param.Name = checkNameLenght(param.Name)
|
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})
|
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 {
|
if err != nil {
|
||||||
@@ -390,6 +385,10 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
|||||||
param.CategoryLeafId = vendorCategoryId
|
param.CategoryLeafId = vendorCategoryId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if api.GetProductUpdateRule(param.CategoryLeafId) {
|
||||||
|
param.AfterSaleService = map[string]string{"supply_day_return_selector": "7天"}
|
||||||
|
}
|
||||||
|
|
||||||
// 获取主商品id
|
// 获取主商品id
|
||||||
var mainIdInt int64
|
var mainIdInt int64
|
||||||
if storeSku.VendorMainId == "" {
|
if storeSku.VendorMainId == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user