Browse Source

特价商品唯一但是不限制数量

master
Lemon 5 years ago
parent
commit
3c840930e0
  1. 2
      app/Service/ShopCarService.php

2
app/Service/ShopCarService.php

@ -32,7 +32,7 @@ class ShopCarService implements ShopCarServiceInterface
$goods_exists = ShopCar::where([
['money','=',0.01],
['user_id','=',$params['user_id']],
['good_id','=',$params['good_id']]
['good_id','!=',$params['good_id']]
])
->exists();
if($goods_exists){

Loading…
Cancel
Save