From abc56c352e152a72c095d41d6a1ff050ab5bca85 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:38:48 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/system_store_sku.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index fdfc34075..f87e4727c 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -163,7 +163,7 @@ func BatchInitData(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi *mt if storeSku.AppFoodCode != "" { foodData[mtwmapi.KeyAppFoodCode] = storeSku.AppFoodCode } else { - foodData[mtwmapi.KeyAppFoodCode] = time.Now().Unix() + foodData[mtwmapi.KeyAppFoodCode] = storeSku.Ctime } skus := []map[string]interface{}{ @@ -216,6 +216,7 @@ func BatchInitData(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi *mt } break } + foodDataList[i] = foodData ////foodData["skus"] = storeSku.Skus //skusString, err := json.Marshal(skus2)