Commit 0e1fda13 authored by 冯超鹏's avatar 冯超鹏

提交信息wss 更改

parent 4a70232e
Pipeline #154 canceled with stages
...@@ -64,11 +64,11 @@ class alarm extends Command ...@@ -64,11 +64,11 @@ class alarm extends Command
'backlog' => 128, //Listen队列长度 'backlog' => 128, //Listen队列长度
'max_request' => 10,//最大连接 'max_request' => 10,//最大连接
'daemonize'=>0,//守护进程 'daemonize'=>0,//守护进程
// 'ssl_cert_file' => __DIR__ . '/config/ssl.crt', 'ssl_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_chain',
// 'ssl_key_file' => __DIR__ . '/config/ssl.key', 'ssl_key_file' => __DIR__ . '/tests/textcert/4544322_iot.zhkjgf.com.key',
// 'ssl_verify_peer' => true, 'ssl_verify_peer' => true,
// 'ssl_allow_self_signed' => true, 'ssl_allow_self_signed' => true,
// 'ssl_client_cert_file' => __DIR__ . '/config/client.crt', 'ssl_client_cert_file' => __DIR__ . '/tests/textcert/4544322_iot.zhkjgf.com_public.crt',
)); ));
$this->ws->on('open', function ($ws, $request) { $this->ws->on('open', function ($ws, $request) {
// //链接成功 // //链接成功
......
...@@ -64,6 +64,11 @@ class chemicalswb extends Command ...@@ -64,6 +64,11 @@ class chemicalswb extends Command
'backlog' => 128, //Listen队列长度 'backlog' => 128, //Listen队列长度
'max_request' => 10,//最大连接 'max_request' => 10,//最大连接
'daemonize'=>0,//守护进程 'daemonize'=>0,//守护进程
'ssl_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_chain',
'ssl_key_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com.key',
'ssl_verify_peer' => true,
'ssl_allow_self_signed' => true,
'ssl_client_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_public.crt',
)); ));
$this->ws->on('open', function ($ws, $request) { $this->ws->on('open', function ($ws, $request) {
// //链接成功 // //链接成功
......
...@@ -64,6 +64,11 @@ class firewb extends Command ...@@ -64,6 +64,11 @@ class firewb extends Command
'backlog' => 128, //Listen队列长度 'backlog' => 128, //Listen队列长度
'max_request' => 10,//最大连接 'max_request' => 10,//最大连接
'daemonize'=>0,//守护进程 'daemonize'=>0,//守护进程
'ssl_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_chain',
'ssl_key_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com.key',
'ssl_verify_peer' => true,
'ssl_allow_self_signed' => true,
'ssl_client_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_public.crt',
)); ));
$this->ws->on('open', function ($ws, $request) { $this->ws->on('open', function ($ws, $request) {
// //链接成功 // //链接成功
......
...@@ -64,6 +64,11 @@ class swoole extends Command ...@@ -64,6 +64,11 @@ class swoole extends Command
'backlog' => 128, //Listen队列长度 'backlog' => 128, //Listen队列长度
'max_request' => 10,//最大连接 'max_request' => 10,//最大连接
'daemonize'=>0,//守护进程 'daemonize'=>0,//守护进程
'ssl_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_chain',
'ssl_key_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com.key',
'ssl_verify_peer' => true,
'ssl_allow_self_signed' => true,
'ssl_client_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_public.crt',
)); ));
$this->ws->on('open', function ($ws, $request) { $this->ws->on('open', function ($ws, $request) {
// //链接成功 // //链接成功
......
...@@ -67,6 +67,11 @@ class swooleMeTcp extends Command ...@@ -67,6 +67,11 @@ class swooleMeTcp extends Command
'backlog' => 128, 'backlog' => 128,
'heartbeat_check_interval' => 30, 'heartbeat_check_interval' => 30,
'heartbeat_idle_time' => 65, 'heartbeat_idle_time' => 65,
'ssl_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_chain',
'ssl_key_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com.key',
'ssl_verify_peer' => true,
'ssl_allow_self_signed' => true,
'ssl_client_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_public.crt',
]); ]);
//监听连接进入事件 //监听连接进入事件
$this->tcp->on('Connect', function ($serv, $fd) { $this->tcp->on('Connect', function ($serv, $fd) {
......
...@@ -137,8 +137,6 @@ class UinappHomeController extends Controller ...@@ -137,8 +137,6 @@ class UinappHomeController extends Controller
// 发送邮箱验证 // 发送邮箱验证
public function mails(Request $request) public function mails(Request $request)
{ {
print_r(base_path());
die();
$isemail = $request->input('email'); $isemail = $request->input('email');
$num = str_pad(mt_rand(0, 999999), 6, "0", STR_PAD_BOTH); $num = str_pad(mt_rand(0, 999999), 6, "0", STR_PAD_BOTH);
if ($isemail != ''){ if ($isemail != ''){
......
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