This commit is contained in:
邹宗楠
2025-09-19 11:50:25 +08:00
parent ad83dbd4e2
commit decdfd1f6f
3 changed files with 10 additions and 10 deletions

View File

@@ -457,12 +457,12 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
"url": storeSku.Img5, "url": storeSku.Img5,
}) })
} }
if storeSku.SpecialPictures != "" { //if storeSku.SpecialPictures != "" {
photos = append(photos, map[string]interface{}{ // photos = append(photos, map[string]interface{}{
"is_master": 0, // "is_master": 0,
"url": storeSku.SpecialPictures, // "url": storeSku.SpecialPictures,
}) // })
} //}
params = map[string]interface{}{ params = map[string]interface{}{
// "name": utils.LimitMixedStringLen(storeSku.SkuName, ebaiapi.MaxSkuNameByteCount), // "name": utils.LimitMixedStringLen(storeSku.SkuName, ebaiapi.MaxSkuNameByteCount),

View File

@@ -179,9 +179,9 @@ func skuInfo2Param(ctx *jxcontext.Context, sku *dao.StoreSkuSyncInfo) (param *jd
param.ShopCategories = append(param.ShopCategories, utils.Str2Int64(sku.VendorCatID)) param.ShopCategories = append(param.ShopCategories, utils.Str2Int64(sku.VendorCatID))
} }
if sku.ImgMix != "" { if sku.ImgMix != "" {
param.Images = jxutils.BatchString2Slice(sku.ImgMix, sku.Img2, sku.Img3, sku.Img4, sku.Img5, sku.SpecialPictures) param.Images = jxutils.BatchString2Slice(sku.ImgMix, sku.Img2, sku.Img3, sku.Img4, sku.Img5)
} else { } else {
param.Images = jxutils.BatchString2Slice(sku.Img, sku.Img2, sku.Img3, sku.Img4, sku.Img5, sku.SpecialPictures) param.Images = jxutils.BatchString2Slice(sku.Img, sku.Img2, sku.Img3, sku.Img4, sku.Img5)
} }
if sku.SkuVendorMapCatID != "" && sku.SkuVendorMapCatID != "0" { if sku.SkuVendorMapCatID != "" && sku.SkuVendorMapCatID != "0" {

View File

@@ -255,7 +255,7 @@ func UpdateTaoVegetable(api *tao_vegetable.API, storeSkuList []*dao.StoreSkuSync
updateSku.PurchaseQuantity = utils.Int64ToPointer(int64(v.MinOrderCount)) // 起购单位 updateSku.PurchaseQuantity = utils.Int64ToPointer(int64(v.MinOrderCount)) // 起购单位
} }
// 修改暂时不修改图片,保持效率 // 修改暂时不修改图片,保持效率
updateSku.SkuPicUrls = uploadImg(api, v.SkuID, model.VendorIDTaoVegetable, []string{v.Img, v.Img2, v.Img3, v.Img4, v.Img5, v.DescImg, v.SpecialPictures}) updateSku.SkuPicUrls = uploadImg(api, v.SkuID, model.VendorIDTaoVegetable, []string{v.Img, v.Img2, v.Img3, v.Img4, v.Img5, v.DescImg})
if updateSku.SkuPicUrls == nil { if updateSku.SkuPicUrls == nil {
continue continue
} }
@@ -329,7 +329,7 @@ func createTaoVegetable(ctx *jxcontext.Context, api *tao_vegetable.API, storeSku
if storeSku.VendorCatID == "175" { if storeSku.VendorCatID == "175" {
sku.MerchantCatCode = utils.String2Pointer("1751") sku.MerchantCatCode = utils.String2Pointer("1751")
} }
sku.SkuPicUrls = uploadImg(api, storeSku.SkuID, model.VendorIDTaoVegetable, []string{storeSku.Img, storeSku.Img2, storeSku.Img3, storeSku.Img4, storeSku.Img5, storeSku.DescImg, storeSku.SpecialPictures}) sku.SkuPicUrls = uploadImg(api, storeSku.SkuID, model.VendorIDTaoVegetable, []string{storeSku.Img, storeSku.Img2, storeSku.Img3, storeSku.Img4, storeSku.Img5, storeSku.DescImg})
if sku.SkuPicUrls == nil { if sku.SkuPicUrls == nil {
continue continue
} }