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