mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Order.php
This commit is contained in:
parent
300922fe5f
commit
39d830de81
@ -82,7 +82,7 @@ class Order extends Auth
|
||||
$buys = $this->app->db->name('StoreOrder')->alias('a')->join('store_order_item b', 'a.order_no=b.order_no')->where($map)->sum('b.stock_sales');
|
||||
if ($buys + $count > $goods['limit_max_num']) $this->error('超过限购数量');
|
||||
}
|
||||
// 限制最购买
|
||||
// 限制购买身份
|
||||
if ($goodsInfo['limit_low_vip'] > $this->user['vip_number']) {
|
||||
$this->error('会员等级不够');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user