mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
update
This commit is contained in:
parent
2083198340
commit
12940d569a
@ -81,13 +81,13 @@ class UserController extends Controller
|
|||||||
|
|
||||||
public function getSubscribe (Request $request) {
|
public function getSubscribe (Request $request) {
|
||||||
$user = User::find($request->session()->get('id'));
|
$user = User::find($request->session()->get('id'));
|
||||||
$server = [];
|
|
||||||
if ($user->plan_id) {
|
if ($user->plan_id) {
|
||||||
$user['plan'] = Plan::find($user->plan_id);
|
$user['plan'] = Plan::find($user->plan_id);
|
||||||
if (!$user['plan']) {
|
if (!$user['plan']) {
|
||||||
abort(500, '订阅计划不存在');
|
abort(500, '订阅计划不存在');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$user['subscribe_url'] = config('v2board.app_url', env('APP_URL')) . '/api/v1/client/subscribe?token=' . $user['token'];
|
||||||
return response([
|
return response([
|
||||||
'data' => $user
|
'data' => $user
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user