This commit is contained in:
root 2019-10-27 21:00:35 +08:00
parent 81bfc56422
commit 52ea3057ea
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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)) {