+ globals.EnableNewAct

This commit is contained in:
gazebo
2019-07-15 14:19:38 +08:00
parent 82ad1ed0cc
commit 598a9738e8
4 changed files with 21 additions and 2 deletions

View File

@@ -429,7 +429,11 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, isFocus bo
storeIDs, skuIDs = GetStoreAndSkuIDsFromInfo(skuNamesInfo)
}
beginTime := time.Now()
err = updateActPrice4StoreSkuName(db, storeIDs, skuIDs, skuNamesInfo)
if globals.EnableNewAct {
err = updateActPrice4StoreSkuNameNew(db, storeIDs, skuIDs, skuNamesInfo)
} else {
err = updateActPrice4StoreSkuName(db, storeIDs, skuIDs, skuNamesInfo)
}
globals.SugarLogger.Debugf("GetStoresSkusNew updateActPrice4StoreSkuName:%v", time.Now().Sub(beginTime))
}
}