This commit is contained in:
aozhiwei 2021-01-20 20:16:47 +08:00
parent 84678d76f9
commit 7b9f9300a0

View File

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