Commit 62b7c4e1 authored by liuyuzhen's avatar liuyuzhen

组合销售

parent 126923fc
......@@ -196,7 +196,7 @@ class PBundlingModel extends \DAO\AbstractModel {
$key = $result['key'];
if($op == \Our\ApiConst::minus){
$pBundling['bl_storage'] = $pBundling['bl_storage']-$blStorage;
if($pBundling['bl_storage']-$blStorage<\Our\ApiConst::zero){
if($pBundling['bl_storage']<\Our\ApiConst::zero){
\Lock\RedisLock::getInstance()->releaseLock(\Our\NameConst::pBundlingStorageRedisPrefix.$blId);
\Error\ErrorModel::throwException(\Error\CodeConfigModel::pBundlingNoStorageForOrder);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment