fix: 修复tg机器人无法回复工单的问题

This commit is contained in:
xboard 2023-12-03 09:43:38 +08:00
parent ea6cd5eca1
commit bf3930d29f
2 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,6 @@ class XboardInstall extends Command
\Artisan::call('config:cache');
return ;
}
$envConfig['APP_KEY'] = 'base64:' . base64_encode(Encrypter::generateKey('AES-256-CBC'));
// 选择是否使用Sqlite
if( $this->ask('是否启用Sqlite(无需额外安装)代替Mysql(默认不启用 y/n)','n') == 'y' ) {
$sqliteFile = '.docker/.data/database.sqlite';
@ -88,6 +87,7 @@ class XboardInstall extends Command
'DB_PASSWORD' => $this->ask('请输入数据库密码'),
];
}
$envConfig['APP_KEY'] = 'base64:' . base64_encode(Encrypter::generateKey('AES-256-CBC'));
$envConfig['INSTALLED'] = 'true';
// 判断是否为Docker环境
if ($isDocker == 'true' && ($this->ask('是否启用Docker内置的Redis(默认启用 y/n)','y') === 'y')){

View File

@ -23,8 +23,9 @@ class TelegramController extends Controller
public function webhook(Request $request)
{
$this->formatMessage($request->input());
$this->formatChatJoinRequest($request->input());
$data = json_decode(get_request_content(),true);
$this->formatMessage($data);
$this->formatChatJoinRequest($data);
$this->handle();
}