mirror of
https://github.com/v2board/v2board.git
synced 2025-02-11 16:00:27 +08:00
update telegram
This commit is contained in:
parent
fa6aea6e2d
commit
fddd816129
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');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user