mirror of
https://github.com/v2board/v2board.git
synced 2025-01-31 02:29:14 +08:00
update
This commit is contained in:
parent
81bfc56422
commit
52ea3057ea
@ -60,7 +60,7 @@ class OrderController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$plan->show && !$plan->renew) {
|
if (!$plan->show && !$plan->renew) {
|
||||||
abort(500, '该订阅无法续费');
|
abort(500, '该订阅无法续费,请更换其他订阅');
|
||||||
}
|
}
|
||||||
|
|
||||||
$order = new Order();
|
$order = new Order();
|
||||||
|
@ -15,7 +15,7 @@ class PlanController extends Controller
|
|||||||
}
|
}
|
||||||
$plan = Plan::find($request->input('plan_id'));
|
$plan = Plan::find($request->input('plan_id'));
|
||||||
if (!$plan) {
|
if (!$plan) {
|
||||||
abort(500, '订阅不存在');
|
abort(500, '该订阅不存在');
|
||||||
}
|
}
|
||||||
$user = User::find($request->session()->get('id'));
|
$user = User::find($request->session()->get('id'));
|
||||||
if (!($plan->show || $user->plan_id == $plan->id)) {
|
if (!($plan->show || $user->plan_id == $plan->id)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user