Commit 6b452fc7 authored by Administrator's avatar Administrator

swooleMeTcp 更新

parent f89d385c
...@@ -86,6 +86,7 @@ class swooleMeTcp extends Command ...@@ -86,6 +86,7 @@ class swooleMeTcp extends Command
}); });
//监听数据接收事件 //监听数据接收事件
$this->tcp->on('Receive', function ($serv, $fd, $from_id, $data) { $this->tcp->on('Receive', function ($serv, $fd, $from_id, $data) {
Log::channel('slack')->info($data);
//验证数据格式 //验证数据格式
if($this->formatData($data)){ if($this->formatData($data)){
$swooletcp = new SwooleCommandMeTcpController(); $swooletcp = new SwooleCommandMeTcpController();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment