1
This commit is contained in:
parent
ad122291e2
commit
4bb12a60df
@ -76,6 +76,10 @@ class ShopController extends BaseAuthedController {
|
||||
myself()->_rspErr(1, 'goods not found');
|
||||
return;
|
||||
}
|
||||
if ($goodsMeta['is_close']) {
|
||||
myself()->_rspErr(1, 'no right to purchase');
|
||||
return;
|
||||
}
|
||||
if ($goodsNum > $goodsMeta['max_amount']) {
|
||||
myself()->_rspErr(1, "goods_num parameter error, max_amount: {$goodsMeta['max_amount']}");
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user