From f74c25c44f0f90553d2f98508f546fa8952a99d9 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 23 Nov 2019 01:43:38 +0800 Subject: [PATCH] update --- app/Http/Controllers/TutorialController.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/TutorialController.php b/app/Http/Controllers/TutorialController.php index a46747a5..5c3f856d 100644 --- a/app/Http/Controllers/TutorialController.php +++ b/app/Http/Controllers/TutorialController.php @@ -16,6 +16,17 @@ class TutorialController extends Controller } public function getAppleID () { - + $user = User::find($request->session()->get('id')); + if ($user->expired_at < time()) { + return response([ + 'data' => false + ]) + } + return response([ + 'data' => [ + 'apple_id' => config('v2board.apple_id'), + 'apple_id_password' => config('v2board.apple_id_password') + ] + ]) } }