From 791a41cb83e0741d5b2d1075095297dd9addf330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 29 Oct 2020 10:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=9C=E5=9B=AD=E5=8F=AF=E4=BB=A5=E6=89=B9?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store_sku.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 611a2ed92..fe0e09647 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -1079,9 +1079,11 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs if err != nil || storeDetail == nil { continue } - if len(storeIDs) > 1 { - if storeDetail.StoreLevel == "D" || storeDetail.StoreLevel == "E" { - continue + if beego.BConfig.RunMode == "prod" { + if len(storeIDs) > 1 { + if storeDetail.StoreLevel == "D" || storeDetail.StoreLevel == "E" { + continue + } } } scaleFactor := float64(1)