From e6153738c93d1bc2cfeb32d6a6d9ed435fd585be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 17 Feb 2025 11:50:53 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sku.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index 1e92f4ee1..9b7d2f722 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -1385,6 +1385,9 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n if jdCategoryId != "" && jdCategoryId != "0" { updateOrCreate(model.VendorIDJD, nameID, jdCategoryId) flag = true + if payload == nil { + payload = make(map[string]interface{}, 0) + } payload["jdCategoryID"] = jdCategoryId } if jxCategoryID != 0 && jxCategoryID != 291 {