mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
715e0175cf
commit
45a19164ec
@ -8,14 +8,14 @@ use App\Models\User;
|
||||
|
||||
class TutorialController extends Controller
|
||||
{
|
||||
public function getSubscribeUrl () {
|
||||
public function getSubscribeUrl (Request $request) {
|
||||
$user = User::find($request->session()->get('id'));
|
||||
return response([
|
||||
'data' => config('v2board.app_url', env('APP_URL')) . '/api/v1/client/subscribe?token=' . $user['token']
|
||||
]);
|
||||
}
|
||||
|
||||
public function getAppleID () {
|
||||
public function getAppleID (Request $request) {
|
||||
$user = User::find($request->session()->get('id'));
|
||||
if ($user->expired_at < time()) {
|
||||
return response([
|
||||
|
Loading…
Reference in New Issue
Block a user