mirror of
https://github.com/v2board/v2board.git
synced 2025-01-31 02:29:14 +08:00
update
This commit is contained in:
parent
52ea3057ea
commit
c187f07bed
@ -18,10 +18,6 @@ class PlanController extends Controller
|
|||||||
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)) {
|
|
||||||
abort(500, '该订阅已售罄');
|
|
||||||
}
|
|
||||||
|
|
||||||
return response([
|
return response([
|
||||||
'data' => $plan
|
'data' => $plan
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user