|
@@ -298,7 +298,7 @@ class Order extends Base
|
|
|
$order = json_decode($order,true);
|
|
|
|
|
|
$inventory = getCollectionInventory($order['c_id']);
|
|
|
- if ($inventory<1) $this->error('已售罄');
|
|
|
+ if ($inventory < 0) $this->error('已售罄');
|
|
|
if ($inventory<$order['num']) $this->error('库存不足');
|
|
|
|
|
|
/* $coll_info = getCollectionInfoHash($order['c_id']);
|