From 8f8be2ea33642a2803ee89adeda9f0d140fb231e Mon Sep 17 00:00:00 2001 From: root Date: Thu, 2 Jan 2020 21:55:50 +0800 Subject: [PATCH] update --- app/Http/Controllers/TutorialController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/TutorialController.php b/app/Http/Controllers/TutorialController.php index d577a088..ec3f9aab 100644 --- a/app/Http/Controllers/TutorialController.php +++ b/app/Http/Controllers/TutorialController.php @@ -36,13 +36,13 @@ class TutorialController extends Controller public function fetch (Request $request) { $tutorial = Tutorial::select(['title', 'description', 'icon'])->get(); + $user = User::find($request->session()->get('id')); $response = [ 'data' => [ 'tutorials' => $tutorial, 'subscribe_url' => config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token'] ] ]; - $user = User::find($request->session()->get('id')); if ($user->expired_at > time()) { $response['data']['apple_id'] = [ 'apple_id' => config('v2board.apple_id'),