From 27b8b34153097271b2c54b449b27f527df2c087b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 11 Jun 2020 14:44:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/tempop/tempop.go | 4 ++-- business/partner/purchase/jdshop/store_sku.go | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 2b75fd4c3..817c25d90 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1612,8 +1612,8 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { // } // } var jdsIds = []int64{69355523686, - 69353698875, - // 69353633443, + // 69353698875, + 69353633443, // 69353579080, // 69353592976, // 69353575450, diff --git a/business/partner/purchase/jdshop/store_sku.go b/business/partner/purchase/jdshop/store_sku.go index ae1ff283d..0bb6e409f 100644 --- a/business/partner/purchase/jdshop/store_sku.go +++ b/business/partner/purchase/jdshop/store_sku.go @@ -187,6 +187,12 @@ func (p *PurchaseHandler) UpdateStoreSkus(ctx *jxcontext.Context, storeID int, v // } } for _, vv := range v.StoreSkuSyncInfoJds { + // updateSkusParam, err := buildUpdateSkusParam(v, vv, false) + // if err != nil { + // failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDJDShop], "更新商品基础信息") + // return failedList, err + // } + // _, err = api.JdShopAPI.UpdateSkus(updateSkusParam) vendorSku, _ := api.JdShopAPI.FindSkuById(utils.Str2Int64(vv.VendorSkuID)) if vv.Comment != "" { err = api.JdShopAPI.UpdateWareSaleAttrvalueAlias(&jdshopapi.UpdateWareSaleAttrvalueAliasParam{ @@ -852,6 +858,7 @@ func buildUpdateSkusParam(storeSku *dao.StoreSkuSyncInfo, v *dao.StoreSkuSyncInf if specQuality != result.SaleAttrs[0].AttrValueAlias[0] { err = api.JdShopAPI.DeleteSku(utils.Str2Int64(v.VendorSkuID)) } + sku.SkuID = utils.Str2Int64(v.VendorSkuID) } if attrIDs["类别"] != 0 { values2, _, err2 := api.JdShopAPI.FindValuesByAttrId(attrIDs["类别"])