Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冯超鹏
laravelzh
Commits
9fefcad0
Commit
9fefcad0
authored
Oct 23, 2020
by
冯超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6840aee3
Pipeline
#152
canceled with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
alarm.php
app/Console/Commands/alarm.php
+5
-1
UinappHomeController.php
app/Http/Controllers/UinappHomeController.php
+2
-0
article.js
resources/js/api/article.js
+0
-1
No files found.
app/Console/Commands/alarm.php
View file @
9fefcad0
...
...
@@ -64,6 +64,11 @@ class alarm extends Command
'backlog'
=>
128
,
//Listen队列长度
'max_request'
=>
10
,
//最大连接
'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
)
{
// //链接成功
...
...
@@ -76,7 +81,6 @@ class alarm extends Command
$userdata
=
new
SwooleCommandController
();
$this
->
ws
->
push
(
$frame
->
fd
,
$userdata
->
alarm
(
$frame
->
data
),
1
);
});
$this
->
ws
->
on
(
'request'
,
function
(
$request
,
$response
,
$from_id
,
$fd
)
{
});
//监听WebSocket连接关闭事件
...
...
app/Http/Controllers/UinappHomeController.php
View file @
9fefcad0
...
...
@@ -137,6 +137,8 @@ class UinappHomeController extends Controller
// 发送邮箱验证
public
function
mails
(
Request
$request
)
{
print_r
(
__DIR__
);
die
();
$isemail
=
$request
->
input
(
'email'
);
$num
=
str_pad
(
mt_rand
(
0
,
999999
),
6
,
"0"
,
STR_PAD_BOTH
);
if
(
$isemail
!=
''
){
...
...
resources/js/api/article.js
View file @
9fefcad0
...
...
@@ -7,7 +7,6 @@ export function fetchList(query) {
params
:
query
,
});
}
export
function
fetchArticle
(
id
)
{
return
request
({
url
:
'/articles/'
+
id
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment