mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-08 18:08:13 -05:00
fix: 修复tg机器人无法回复工单的问题
This commit is contained in:
parent
ea6cd5eca1
commit
bf3930d29f
@ -59,7 +59,6 @@ class XboardInstall extends Command
|
|||||||
\Artisan::call('config:cache');
|
\Artisan::call('config:cache');
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
$envConfig['APP_KEY'] = 'base64:' . base64_encode(Encrypter::generateKey('AES-256-CBC'));
|
|
||||||
// 选择是否使用Sqlite
|
// 选择是否使用Sqlite
|
||||||
if( $this->ask('是否启用Sqlite(无需额外安装)代替Mysql(默认不启用 y/n)','n') == 'y' ) {
|
if( $this->ask('是否启用Sqlite(无需额外安装)代替Mysql(默认不启用 y/n)','n') == 'y' ) {
|
||||||
$sqliteFile = '.docker/.data/database.sqlite';
|
$sqliteFile = '.docker/.data/database.sqlite';
|
||||||
@ -88,6 +87,7 @@ class XboardInstall extends Command
|
|||||||
'DB_PASSWORD' => $this->ask('请输入数据库密码'),
|
'DB_PASSWORD' => $this->ask('请输入数据库密码'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
$envConfig['APP_KEY'] = 'base64:' . base64_encode(Encrypter::generateKey('AES-256-CBC'));
|
||||||
$envConfig['INSTALLED'] = 'true';
|
$envConfig['INSTALLED'] = 'true';
|
||||||
// 判断是否为Docker环境
|
// 判断是否为Docker环境
|
||||||
if ($isDocker == 'true' && ($this->ask('是否启用Docker内置的Redis(默认启用 y/n)','y') === 'y')){
|
if ($isDocker == 'true' && ($this->ask('是否启用Docker内置的Redis(默认启用 y/n)','y') === 'y')){
|
||||||
|
@ -23,8 +23,9 @@ class TelegramController extends Controller
|
|||||||
|
|
||||||
public function webhook(Request $request)
|
public function webhook(Request $request)
|
||||||
{
|
{
|
||||||
$this->formatMessage($request->input());
|
$data = json_decode(get_request_content(),true);
|
||||||
$this->formatChatJoinRequest($request->input());
|
$this->formatMessage($data);
|
||||||
|
$this->formatChatJoinRequest($data);
|
||||||
$this->handle();
|
$this->handle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user