From 45c064d6e5f994f6d545a7e4ce8d9d613a595208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 28 Jul 2020 15:33:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sku.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index f5ab4b3dd..de33f1357 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -1110,16 +1110,16 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n updateOrCreate(model.VendorIDMTWM, nameID, skuNameExt.MtwmCategoryID) } } else { - if payload["jdCategoryID"].(string) != "" { + if payload["jdCategoryID"] != nil { updateOrCreate(model.VendorIDJD, nameID, payload["jdCategoryID"].(string)) } - if payload["jdsCategoryID"].(string) != "" { + if payload["jdsCategoryID"] != nil { updateOrCreate(model.VendorIDJDShop, nameID, payload["jdsCategoryID"].(string)) } - if payload["ebaiCategoryID"].(string) != "" { + if payload["ebaiCategoryID"] != nil { updateOrCreate(model.VendorIDEBAI, nameID, payload["ebaiCategoryID"].(string)) } - if payload["mtwmCategoryID"].(string) != "" { + if payload["mtwmCategoryID"] != nil { updateOrCreate(model.VendorIDMTWM, nameID, payload["mtwmCategoryID"].(string)) } }