up. 优化代码内容
This commit is contained in:
parent
e3f1457b61
commit
bed013d629
@ -20,7 +20,7 @@ class OutMessage
|
|||||||
if (is_array($event) && count($event) == 3) {
|
if (is_array($event) && count($event) == 3) {
|
||||||
$this->type = $event[0];
|
$this->type = $event[0];
|
||||||
$this->event = $event[1];
|
$this->event = $event[1];
|
||||||
$this->data = $data;
|
$this->data = $event[2];
|
||||||
return;
|
return;
|
||||||
} else if ($event instanceof ScriptEnum) {
|
} else if ($event instanceof ScriptEnum) {
|
||||||
$this->type = 'script';
|
$this->type = 'script';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user