fixed
This commit is contained in:
@@ -26,6 +26,13 @@ use wanghua\general_utility_tools_php\tool\Tools;
|
||||
class Wsspush extends BaseWssApi
|
||||
{
|
||||
|
||||
/**
|
||||
* desc:
|
||||
*
|
||||
* index/wsspush/index/socketTaskId/xxxx
|
||||
*
|
||||
* author:wh
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ class Events extends \think\worker\Events
|
||||
public static function onMessage($client_id, $data)
|
||||
{
|
||||
Tools::log_to_write_txt(['客户端发来数据(Gateway进程收到数据).client_id:'.$client_id,$data]);
|
||||
//$res = Tools::set_ok('ok',['client_id'=>$client_id,'msg'=>'你发来的消息我接收到了:',$client_id=>$data]);
|
||||
$res = Tools::set_ok('ok',['client_id'=>$client_id,'msg'=>'你发来的消息我接收到了:',$client_id=>$data]);
|
||||
Gateway::sendToClient($client_id,json_encode($res,JSON_UNESCAPED_UNICODE));
|
||||
|
||||
//if(empty($data)){
|
||||
|
||||
Reference in New Issue
Block a user