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

View File

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