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 {