From 54273a8f16e81c7ef1b6a05dd634a0c9a6d0056f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 Jan 2020 00:24:45 +0800 Subject: [PATCH] update --- app/Http/Controllers/TutorialController.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/TutorialController.php b/app/Http/Controllers/TutorialController.php index 7dd0ad52..ab6990ea 100644 --- a/app/Http/Controllers/TutorialController.php +++ b/app/Http/Controllers/TutorialController.php @@ -55,14 +55,12 @@ class TutorialController extends Controller 'tutorials' => $tutorial, 'safe_area_var' => [ 'subscribe_url' => config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token'], - 'app_name' => config('v2board.app_name', 'V2board') + 'app_name' => config('v2board.app_name', 'V2board'), + 'apple_id' => $user->expired_at > time() ? config('v2board.apple_id', '管理员暂无提供AppleID信息') : '账号过期或未订阅', + 'apple_id_password' => $user->expired_at > time() ? config('v2board.apple_id_password', '管理员暂无提供AppleID信息') : '账号过期或未订阅' ] ] ]; - if ($user->expired_at > time()) { - $response['data']['safe_area_var']['apple_id'] = config('v2board.apple_id'); - $response['data']['safe_area_var']['apple_id_password'] = config('v2board.apple_id_password'); - } return response($response); } }