feat: 新增压缩下载完成后系统机器人提醒

This commit is contained in:
ganzizi
2023-12-05 18:55:50 +08:00
parent e4070e249d
commit faf5dec08a
3 changed files with 32 additions and 14 deletions

View File

@@ -38,12 +38,17 @@ class WebSocketDialogMsgTask extends AbstractTask
{
parent::__construct(...func_get_args());
$this->id = $id;
$this->ignoreFd = $ignoreFd === null ? Request::header('fd') : $ignoreFd;
$this->client = [
'version' => Base::headerOrInput('version'),
'language' => Base::headerOrInput('language'),
'platform' => Base::headerOrInput('platform'),
];
// 判断是否有Request方法兼容go协程请求
$this->ignoreFd = $ignoreFd;
$this->client = [];
if (method_exists(new Request,"header")) {
$this->ignoreFd = $ignoreFd === null ? Request::header('fd') : $ignoreFd;
$this->client = [
'version' => Base::headerOrInput('version'),
'language' => Base::headerOrInput('language'),
'platform' => Base::headerOrInput('platform'),
];
}
}
/**