From c187f07bed504485ae5b8af68d8a068a8702ff46 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 27 Oct 2019 21:01:26 +0800 Subject: [PATCH] update --- app/Http/Controllers/PlanController.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Http/Controllers/PlanController.php b/app/Http/Controllers/PlanController.php index 18bedaf6..406a4bdb 100755 --- a/app/Http/Controllers/PlanController.php +++ b/app/Http/Controllers/PlanController.php @@ -18,10 +18,6 @@ class PlanController extends Controller abort(500, '该订阅不存在'); } $user = User::find($request->session()->get('id')); - if (!($plan->show || $user->plan_id == $plan->id)) { - abort(500, '该订阅已售罄'); - } - return response([ 'data' => $plan ]);