From a8b9e1717dc21c4ff3c1c5c4d10b81e2b3596be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 3 Jan 2025 09:51:42 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/system_store_sku.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index d751386fe..3e82e3522 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -296,6 +296,7 @@ func BatchInitSkuMT2MT(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi skus := make([]interface{}, 0) upc := "" + foodData["available_times"] = "" for _, v := range storeSku.SkuList { if v.Stock == "" { v.Stock = "99999" @@ -322,6 +323,8 @@ func BatchInitSkuMT2MT(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi } delete(mapSkuList, "min_order_count") if v.AvailableTimes != nil { + availableTimes, _ := json.Marshal(mapSkuList["available_times"]) + foodData["available_times"] = string(availableTimes) delete(mapSkuList, "available_times") } if v.Upc != "" {