From 56808546cd673dc46d7424a1c869cd58586deff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 22 Sep 2023 14:50:55 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/system_store_sku.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index f87e4727c..d88eef30c 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -182,10 +182,10 @@ func BatchInitData(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi *mt if attr != "" { foodData["common_attr_value"] = attr } - if storeSku.CategoryCode != "" { - foodData["category_code"] = storeSku.CategoryCode + if storeSku.SecondaryCategoryCode != "" { + foodData["category_code"] = storeSku.SecondaryCategoryCode } else { - foodData["category_name"] = storeSku.CategoryName + foodData["category_name"] = storeSku.SecondaryCategoryName } foodData["is_sold_out"] = storeSku.IsSoldOut foodData["picture"] = storeSku.Picture