This commit is contained in:
邹宗楠
2023-11-01 11:11:42 +08:00
parent 02ec9de035
commit d468d2a7dc

View File

@@ -401,7 +401,9 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
//if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) { //if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) {
// img = storeSku.ImgMix // img = storeSku.ImgMix
//} else { //} else {
globals.SugarLogger.Debugf("=======================%s", utils.Format4Output(storeSku, false))
img, _ = api.EbaiAPI.PictureUpload(storeSku.Img, imgdata) img, _ = api.EbaiAPI.PictureUpload(storeSku.Img, imgdata)
globals.SugarLogger.Debugf("=======================%s", utils.Format4Output(img, false))
//} //}
photos := []map[string]interface{}{ photos := []map[string]interface{}{
map[string]interface{}{ map[string]interface{}{
@@ -443,6 +445,7 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
"photos": photos, "photos": photos,
"preparation_time": storeSku.PreparationTime, "preparation_time": storeSku.PreparationTime,
} }
globals.SugarLogger.Debugf("===============params========%s", utils.Format4Output(photos, false))
if !isExd { if !isExd {
var categoryID = utils.Str2Int64(storeSku.VendorCatID) var categoryID = utils.Str2Int64(storeSku.VendorCatID)
if ebaiExSkuCatMap[storeSku.SkuID] != 0 { if ebaiExSkuCatMap[storeSku.SkuID] != 0 {