From c26ac82d72cbc15603a13016a85d51d15b0d0939 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 24 Dec 2018 09:18:11 +0800 Subject: [PATCH] - debug output params info after filterStorePriceChange in updateStoresSkusWithoutSync --- business/jxstore/cms/store_sku.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 314fd4827..dfda9cffe 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -488,6 +488,7 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, storeIDs []int, skuBind if storeIDs, skuBindInfos, err = filterStorePriceChange(ctx, storeIDs, skuBindInfos); err != nil { return nil, err } + globals.SugarLogger.Debugf("updateStoresSkusWithoutSync2, storeIDs:%v, skuBindInfos:%s", storeIDs, utils.Format4Output(skuBindInfos, false)) userName := ctx.GetUserName() needSyncIDMap := make(map[int]int) @@ -902,7 +903,14 @@ func CopyStoreSkus(ctx *jxcontext.Context, fromStoreID, toStoreID int, copyMode } func shouldPendingStorePriceChange(ctx *jxcontext.Context, storeID int, skuBindInfo *StoreSkuBindInfo) bool { - return globals.EnablePendingChange && (ctx.GetLoginType() == weixin.LoginType || ctx.GetUserName() == "fakeboss") + if globals.EnablePendingChange { + if ctx.GetLoginType() == weixin.LoginType || ctx.GetUserName() == "fakeboss" { + // storeDetail, err := dao.GetStoreDetail() + // skuBindInfo.IsFocus != 1 && + return true + } + } + return false } func filterStorePriceChange(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*StoreSkuBindInfo) (filteredStoreIDs []int, filteredSkuBindInfos []*StoreSkuBindInfo, err error) {