This commit is contained in:
root 2019-10-27 20:30:57 +08:00
parent ac04599a19
commit 3bba7dfecb

View File

@ -59,6 +59,10 @@ class OrderController extends Controller
abort(500, '该订阅已售罄');
}
if (!($plan->show || !$plan->renew)) {
abort(500, '该订阅无法续费');
}
$order = new Order();
$order->user_id = $request->session()->get('id');
$order->plan_id = $plan->id;