Commit 9fefcad0 authored by 冯超鹏's avatar 冯超鹏

no message

parent 6840aee3
Pipeline #152 canceled with stages
...@@ -64,6 +64,11 @@ class alarm extends Command ...@@ -64,6 +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_key_file' => __DIR__ . '/config/ssl.key',
// 'ssl_verify_peer' => true,
// 'ssl_allow_self_signed' => true,
// 'ssl_client_cert_file' => __DIR__ . '/config/client.crt',
)); ));
$this->ws->on('open', function ($ws, $request) { $this->ws->on('open', function ($ws, $request) {
// //链接成功 // //链接成功
...@@ -76,7 +81,6 @@ class alarm extends Command ...@@ -76,7 +81,6 @@ class alarm extends Command
$userdata = new SwooleCommandController(); $userdata = new SwooleCommandController();
$this->ws->push($frame->fd,$userdata->alarm($frame->data),1); $this->ws->push($frame->fd,$userdata->alarm($frame->data),1);
}); });
$this->ws->on('request', function ($request, $response,$from_id,$fd) { $this->ws->on('request', function ($request, $response,$from_id,$fd) {
}); });
//监听WebSocket连接关闭事件 //监听WebSocket连接关闭事件
......
...@@ -137,6 +137,8 @@ class UinappHomeController extends Controller ...@@ -137,6 +137,8 @@ class UinappHomeController extends Controller
// 发送邮箱验证 // 发送邮箱验证
public function mails(Request $request) public function mails(Request $request)
{ {
print_r(__DIR__);
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 != ''){
......
...@@ -7,7 +7,6 @@ export function fetchList(query) { ...@@ -7,7 +7,6 @@ export function fetchList(query) {
params: query, params: query,
}); });
} }
export function fetchArticle(id) { export function fetchArticle(id) {
return request({ return request({
url: '/articles/' + id, url: '/articles/' + id,
......
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