mirror of
				https://github.com/v2board/v2board.git
				synced 2025-11-01 01:41:47 +08:00 
			
		
		
		
	update telegram
This commit is contained in:
		
							
								
								
									
										18
									
								
								app/Http/Controllers/User/CommController.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								app/Http/Controllers/User/CommController.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | <?php | ||||||
|  |  | ||||||
|  | namespace App\Http\Controllers\User; | ||||||
|  |  | ||||||
|  | use Illuminate\Http\Request; | ||||||
|  | use App\Http\Controllers\Controller; | ||||||
|  |  | ||||||
|  | class CommController extends Controller | ||||||
|  | { | ||||||
|  |     public function config() | ||||||
|  |     { | ||||||
|  |         return response([ | ||||||
|  |             'data' => [ | ||||||
|  |                 'isTelegram' => (int)config('v2board.telegram_bot_enable', 0) | ||||||
|  |             ] | ||||||
|  |         ]); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -53,6 +53,8 @@ class UserRoute | |||||||
|             $router->post('/coupon/check', 'User\\CouponController@check'); |             $router->post('/coupon/check', 'User\\CouponController@check'); | ||||||
|             // Telegram |             // Telegram | ||||||
|             $router->get ('/telegram/getBotInfo', 'User\\TelegramController@getBotInfo'); |             $router->get ('/telegram/getBotInfo', 'User\\TelegramController@getBotInfo'); | ||||||
|  |             // Comm | ||||||
|  |             $router->get ('/comm/config', 'User\\CommController@config'); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user