作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

gatewaywork部署上线调试

... ... @@ -179,7 +179,6 @@ class Events
unset($arr1['createtime']);
$arr1['number'] = $number;
$result3 = json_decode(self::httpPost($api['callback'],$arr1),true);
print_r($result3);
if($result3['code'] == 1){
$is_success = 1;
if($result3['data']['status'] == 'normal'){
... ...
... ... @@ -32,7 +32,7 @@ require_once __DIR__ . '/../../vendor/autoload.php';
// )
//);
// gateway 进程,这里使用Text协议,可以用telnet测试
$gateway = new Gateway("websocket://0.0.0.0:9528");
$gateway = new Gateway("tcp://0.0.0.0:9528");
// 开启SSL,websocket+SSL 即wss
//$gateway->transport = 'ssl';
// gateway名称,status方便查看
... ...