mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -36,13 +36,13 @@ class TutorialController extends Controller | ||||
|  | ||||
|     public function fetch (Request $request) { | ||||
|         $tutorial = Tutorial::select(['title', 'description', 'icon'])->get(); | ||||
|         $user = User::find($request->session()->get('id')); | ||||
|         $response = [ | ||||
|             'data' => [ | ||||
|                 'tutorials' => $tutorial, | ||||
|                 'subscribe_url' => config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token'] | ||||
|             ] | ||||
|         ]; | ||||
|         $user = User::find($request->session()->get('id')); | ||||
|         if ($user->expired_at > time()) { | ||||
|             $response['data']['apple_id'] = [ | ||||
|                 'apple_id' => config('v2board.apple_id'), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user