From 12940d569ab35501fbf9d19e2a2e480340ab4b61 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 24 Dec 2019 16:24:21 +0800 Subject: [PATCH] update --- app/Http/Controllers/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 0f0e0039..4134d3ec 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -81,13 +81,13 @@ class UserController extends Controller public function getSubscribe (Request $request) { $user = User::find($request->session()->get('id')); - $server = []; if ($user->plan_id) { $user['plan'] = Plan::find($user->plan_id); if (!$user['plan']) { abort(500, '订阅计划不存在'); } } + $user['subscribe_url'] = config('v2board.app_url', env('APP_URL')) . '/api/v1/client/subscribe?token=' . $user['token']; return response([ 'data' => $user ]);