This commit is contained in:
root 2019-10-27 21:01:26 +08:00
parent 52ea3057ea
commit c187f07bed

View File

@ -18,10 +18,6 @@ class PlanController extends Controller
abort(500, '该订阅不存在');
}
$user = User::find($request->session()->get('id'));
if (!($plan->show || $user->plan_id == $plan->id)) {
abort(500, '该订阅已售罄');
}
return response([
'data' => $plan
]);