This commit is contained in:
gazebo
2018-11-13 12:38:24 +08:00
parent 6cdeb33ff8
commit acbf6052d3
2 changed files with 3 additions and 3 deletions

View File

@@ -860,8 +860,9 @@ func LockPromotionSkus(ctx *jxcontext.Context, promotionID int, isLock int, skuI
}
func OnStoreStockMsg(msg *jdapi.CallbackStoreStockMsg) (retVal *jdapi.CallbackResponse) {
var err error
globals.SugarLogger.Debugf("OnStoreStockMsg msg:%s", utils.Format4Output(msg, false))
var err error
// globals.SugarLogger.Debugf("OnStoreStockMsg IsJdStoreSkuLocked:%t", storeskulock.IsJdStoreSkuLocked(msg.StationNo, msg.SkuId))
if (msg.Vendibility == 1 || !msg.Have) && storeskulock.IsJdStoreSkuLocked(msg.StationNo, msg.SkuId) {
db := dao.GetDB()