From 886ce0db6252bda2ecfeb5c472c16cc5aa44f475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 26 Nov 2024 16:44:38 +0800 Subject: [PATCH] 1 --- business/partner/purchase/mtwm/store_sku2.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/business/partner/purchase/mtwm/store_sku2.go b/business/partner/purchase/mtwm/store_sku2.go index fde4405a6..8f508954d 100644 --- a/business/partner/purchase/mtwm/store_sku2.go +++ b/business/partner/purchase/mtwm/store_sku2.go @@ -332,6 +332,9 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI } else { syncType = "更新商品" } + if storeID == 669149 { + globals.SugarLogger.Debugf("---------storeSkuList := %s", utils.Format4Output(storeSkuList, false)) + } for i, storeSku := range storeSkuList { isNeedUpdatePrice := isCreate //storeSku.SkuSyncStatus&(model.SyncFlagPriceMask|model.SyncFlagNewMask) != 0 foodData := make(map[string]interface{}) @@ -445,6 +448,10 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI } } + + if storeID == 669149 { + globals.SugarLogger.Debugf("---------foodDataList:%s", utils.Format4Output(foodDataList, false)) + } if globals.EnableMtwmStoreWrite { if len(foodDataList) == 1 { foodDataList[0]["skus"] = string(utils.MustMarshal(foodDataList[0]["skus"]))