...
This commit is contained in:
parent
aa4c1d5150
commit
95ceae8940
@ -200,6 +200,10 @@ class ShopController extends BaseAuthedController
|
||||
}
|
||||
|
||||
$goods = mt\ShopGoods::get($id);
|
||||
if (!$goods) {
|
||||
$this->_rspErr(1, 'id is invalid. {$id}');
|
||||
}
|
||||
|
||||
if ($goods['shop_id'] == 9 && $goods_num > 1) {
|
||||
$this->_rspErr(1, 'goods_num is invalid');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user