增加购物车类型
This commit is contained in:
parent
980d6b52ca
commit
b07ecee60b
@ -71,7 +71,7 @@ class StoreCartDg extends BaseController
|
||||
{
|
||||
$data = $this->checkParams($validate);
|
||||
|
||||
if(!in_array($data['product_type'],[0,1,2,3,4])) return app('json')->fail('商品类型错误');
|
||||
if(!in_array($data['product_type'],[0,1,2,3,4,99])) return app('json')->fail('商品类型错误');
|
||||
if ($data['cart_num'] <= 0) return app('json')->fail('购买数量有误');
|
||||
$user = $this->request->userInfo();
|
||||
event('user.cart.before',compact('user','data'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user