This commit is contained in:
邹宗楠
2024-12-17 16:12:07 +08:00
parent 1cf8d81e0c
commit 6174d1cad0
5 changed files with 18 additions and 90 deletions

View File

@@ -419,11 +419,12 @@ func (p *PurchaseHandler) UpdateStoreSkusStock(ctx *jxcontext.Context, vendorOrg
func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isExd bool) (params map[string]interface{}) {
var img string
var imgdata []byte
//if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) {
// img = storeSku.ImgMix
//} else {
img, _ = api.EbaiAPI.PictureUpload(storeSku.Img, imgdata)
//}
// PictureUpload 会被限流,但是通过此接口上传的商品不会异步操作会直接展示
img, err := api.EbaiAPI.PictureUpload(storeSku.Img, imgdata)
if err != nil {
img = storeSku.Img
}
photos := []map[string]interface{}{
map[string]interface{}{
"is_master": 1,