|
|
@@ -935,7 +935,7 @@ class UserController extends Controller
|
|
|
}
|
|
|
|
|
|
//单个商品限购
|
|
|
- if ($goods->is_hot == 2) {
|
|
|
+ if (!$goods->is_limit) {
|
|
|
$noneExpireOrderExist = Order::query()->where('status', '>=', 0)->where('user_id', $user['id'])->where('goods_id', $goods_id)->exists();
|
|
|
if ($noneExpireOrderExist) {
|
|
|
return Response::json(['status' => 'fail', 'data' => '', 'message' => '创建支付单失败:此商品每人限购1次']);
|