mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
fix: 重复通知
This commit is contained in:
parent
7f432cefb9
commit
1788b40431
@ -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'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user