This commit is contained in:
songliang 2023-07-13 17:22:37 +08:00
parent aa4c1d5150
commit 95ceae8940

View File

@ -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');
}