From 3bba7dfecbb7ff20c185a8254e117346a313bda6 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 27 Oct 2019 20:30:57 +0800 Subject: [PATCH] update --- app/Http/Controllers/OrderController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/OrderController.php b/app/Http/Controllers/OrderController.php index cef4ca9c..1cdbecdb 100755 --- a/app/Http/Controllers/OrderController.php +++ b/app/Http/Controllers/OrderController.php @@ -58,6 +58,10 @@ class OrderController extends Controller if (!($plan->show || $user->plan_id == $plan->id)) { abort(500, '该订阅已售罄'); } + + if (!($plan->show || !$plan->renew)) { + abort(500, '该订阅无法续费'); + } $order = new Order(); $order->user_id = $request->session()->get('id');