mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 03:52:50 +00:00
fix: 重复通知
This commit is contained in:
parent
7f432cefb9
commit
1788b40431
@ -41,7 +41,7 @@ class WebSocketDialogMsgTask extends AbstractTask
|
|||||||
// 判断是否有Request方法,兼容go协程请求
|
// 判断是否有Request方法,兼容go协程请求
|
||||||
$this->ignoreFd = $ignoreFd;
|
$this->ignoreFd = $ignoreFd;
|
||||||
$this->client = [];
|
$this->client = [];
|
||||||
if (method_exists(new Request,"header")) {
|
if (method_exists(request(), "header")) {
|
||||||
$this->ignoreFd = $ignoreFd === null ? Request::header('fd') : $ignoreFd;
|
$this->ignoreFd = $ignoreFd === null ? Request::header('fd') : $ignoreFd;
|
||||||
$this->client = [
|
$this->client = [
|
||||||
'version' => Base::headerOrInput('version'),
|
'version' => Base::headerOrInput('version'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user