This commit is contained in:
root 2019-11-23 01:43:38 +08:00
parent c016216883
commit f74c25c44f

View File

@ -16,6 +16,17 @@ class TutorialController extends Controller
} }
public function getAppleID () { 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')
]
])
} }
} }