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

@ -15,7 +15,7 @@ class PlanController extends Controller
}
$plan = Plan::find($request->input('plan_id'));
if (!$plan) {
abort(500, '订阅不存在');
abort(500, '订阅不存在');
}
$user = User::find($request->session()->get('id'));
if (!($plan->show || $user->plan_id == $plan->id)) {