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');