1
This commit is contained in:
parent
84678d76f9
commit
7b9f9300a0
@ -296,6 +296,10 @@ class ShopController{
|
||||
$id = $_REQUEST['id'];
|
||||
$type = $_REQUEST['type'];
|
||||
$num = $_REQUEST['num'];
|
||||
if ($num < 0) {
|
||||
phpcommon\sendError(ERR_USER_BASE + 2,'没有这个商品');
|
||||
return;
|
||||
}
|
||||
$user_db = $this->readShopDB($account_id);
|
||||
$redis_goods = $this->getGoodsDiscount($id, $type, $user_db);
|
||||
$shop_conf = metatable\getShopById($type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user