fix: 重复通知

This commit is contained in:
Pang 2024-01-13 23:47:13 +08:00
parent 7f432cefb9
commit 1788b40431

View File

@ -41,7 +41,7 @@ class WebSocketDialogMsgTask extends AbstractTask
// 判断是否有Request方法兼容go协程请求
$this->ignoreFd = $ignoreFd;
$this->client = [];
if (method_exists(new Request,"header")) {
if (method_exists(request(), "header")) {
$this->ignoreFd = $ignoreFd === null ? Request::header('fd') : $ignoreFd;
$this->client = [
'version' => Base::headerOrInput('version'),