From da719dcf3975483062f2862e84d9925977cf2db5 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Thu, 31 Aug 2023 14:51:33 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/system_store_sku.go | 3 +++ business/partner/purchase/mtwm/store_sku2.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index d1d8ad8e3..4378a51be 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -4,6 +4,8 @@ import ( "fmt" "time" + "git.rosy.net.cn/jx-callback/globals" + "git.rosy.net.cn/baseapi/platformapi/mtwmapi" "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/jxutils/jxcontext" @@ -126,6 +128,7 @@ func BatchInitData(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi *mt foodData["name"] = utils.LimitUTF8StringLen(storeSku.Name, mtwmapi.MaxSkuNameCharCount) foodData["description"] = storeSku.Description foodData["price"] = storeSku.Price + globals.SugarLogger.Debugf("BatchInitData testststts storeSku.Price=%f", storeSku.Price) if storeSku.MinOrderCount != 0 { foodData["min_order_count"] = storeSku.MinOrderCount } else { diff --git a/business/partner/purchase/mtwm/store_sku2.go b/business/partner/purchase/mtwm/store_sku2.go index 5758280eb..fc3128f93 100644 --- a/business/partner/purchase/mtwm/store_sku2.go +++ b/business/partner/purchase/mtwm/store_sku2.go @@ -538,9 +538,9 @@ func SwitchAttr(apiObj *mtwmapi.API, vendorStoreID string, vendorCatID int64, na }} } } + globals.SugarLogger.Debugf("1 attrValue==================%s", utils.Format4Output(attrValue, false)) + attrValues = append(attrValues, attrValue) } - globals.SugarLogger.Debugf("1 attrValue==================%s", utils.Format4Output(attrValue, false)) - attrValues = append(attrValues, attrValue) } temp, _ := json.Marshal(attrValues) attrs = string(temp)