mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
c6461f0bdf
commit
54273a8f16
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user