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
cd47bb4f
Commit
cd47bb4f
authored
Dec 04, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新swoole和头像
parent
f2f67a2d
Pipeline
#172
failed with stages
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
26 additions
and
12 deletions
+26
-12
.gitignore
.gitignore
+1
-0
alarm.php
app/Console/Commands/alarm.php
+3
-2
chemicalswb.php
app/Console/Commands/chemicalswb.php
+2
-2
firewb.php
app/Console/Commands/firewb.php
+2
-2
swoole.php
app/Console/Commands/swoole.php
+2
-2
swooleMeTcp.php
app/Console/Commands/swooleMeTcp.php
+2
-2
UserResource.php
app/Http/Resources/UserResource.php
+1
-1
app.php
config/app.php
+6
-0
avatar.png
resources/js/assets/avatar.png
+0
-0
Navbar.vue
resources/js/layout/components/Navbar.vue
+7
-1
No files found.
.gitignore
View file @
cd47bb4f
...
@@ -25,3 +25,4 @@ yarn-error.log
...
@@ -25,3 +25,4 @@ yarn-error.log
composer.lock
composer.lock
/resources/js/api/configurl.js
/resources/js/api/configurl.js
devicelistdata.text
devicelistdata.text
cert/test
app/Console/Commands/alarm.php
View file @
cd47bb4f
...
@@ -64,9 +64,10 @@ class alarm extends Command
...
@@ -64,9 +64,10 @@ class alarm extends Command
'backlog'
=>
128
,
//Listen队列长度
'backlog'
=>
128
,
//Listen队列长度
'max_request'
=>
10
,
//最大连接
'max_request'
=>
10
,
//最大连接
'daemonize'
=>
0
,
//守护进程
'daemonize'
=>
0
,
//守护进程
'ssl_cert_file'
=>
base_path
()
.
'/cert/apache/iot.zhkjgf.com_public.crt'
,
'ssl_cert_file'
=>
base_path
()
.
config
(
'app.ssl_cert_file'
)
,
'ssl_key_file'
=>
base_path
()
.
'/cert/apache/iot.zhkjgf.com.key'
,
'ssl_key_file'
=>
base_path
()
.
config
(
'app.ssl_key_file'
)
,
));
));
$this
->
ws
->
on
(
'open'
,
function
(
$ws
,
$request
)
{
$this
->
ws
->
on
(
'open'
,
function
(
$ws
,
$request
)
{
// //链接成功
// //链接成功
// $userdata = new SwooleCommandController();
// $userdata = new SwooleCommandController();
...
...
app/Console/Commands/chemicalswb.php
View file @
cd47bb4f
...
@@ -64,8 +64,8 @@ class chemicalswb extends Command
...
@@ -64,8 +64,8 @@ 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
()
.
'/cert/apache/iot.zhkjgf.com_public.crt'
,
'ssl_cert_file'
=>
base_path
()
.
config
(
'app.ssl_cert_file'
)
,
'ssl_key_file'
=>
base_path
()
.
'/cert/apache/iot.zhkjgf.com.key'
,
'ssl_key_file'
=>
base_path
()
.
config
(
'app.ssl_key_file'
)
,
));
));
$this
->
ws
->
on
(
'open'
,
function
(
$ws
,
$request
)
{
$this
->
ws
->
on
(
'open'
,
function
(
$ws
,
$request
)
{
// //链接成功
// //链接成功
...
...
app/Console/Commands/firewb.php
View file @
cd47bb4f
...
@@ -64,8 +64,8 @@ class firewb extends Command
...
@@ -64,8 +64,8 @@ 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
()
.
'/cert/apache/iot.zhkjgf.com_public.crt'
,
'ssl_cert_file'
=>
base_path
()
.
config
(
'app.ssl_cert_file'
)
,
'ssl_key_file'
=>
base_path
()
.
'/cert/apache/iot.zhkjgf.com.key'
,
'ssl_key_file'
=>
base_path
()
.
config
(
'app.ssl_key_file'
)
,
));
));
$this
->
ws
->
on
(
'open'
,
function
(
$ws
,
$request
)
{
$this
->
ws
->
on
(
'open'
,
function
(
$ws
,
$request
)
{
// //链接成功
// //链接成功
...
...
app/Console/Commands/swoole.php
View file @
cd47bb4f
...
@@ -64,8 +64,8 @@ class swoole extends Command
...
@@ -64,8 +64,8 @@ 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
()
.
'/cert/apache/iot.zhkjgf.com_public.crt'
,
'ssl_cert_file'
=>
base_path
()
.
config
(
'app.ssl_cert_file'
)
,
'ssl_key_file'
=>
base_path
()
.
'/cert/apache/iot.zhkjgf.com.key'
,
'ssl_key_file'
=>
base_path
()
.
config
(
'app.ssl_key_file'
)
,
));
));
$this
->
ws
->
on
(
'open'
,
function
(
$ws
,
$request
)
{
$this
->
ws
->
on
(
'open'
,
function
(
$ws
,
$request
)
{
// //链接成功
// //链接成功
...
...
app/Console/Commands/swooleMeTcp.php
View file @
cd47bb4f
...
@@ -67,8 +67,8 @@ class swooleMeTcp extends Command
...
@@ -67,8 +67,8 @@ 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
()
.
'/cert/apache/iot.zhkjgf.com_public.crt'
,
'ssl_cert_file'
=>
base_path
()
.
config
(
'app.ssl_cert_file'
)
,
'ssl_key_file'
=>
base_path
()
.
'/cert/apache/iot.zhkjgf.com.key'
,
'ssl_key_file'
=>
base_path
()
.
config
(
'app.ssl_key_file'
)
,
]);
]);
//监听连接进入事件
//监听连接进入事件
$this
->
tcp
->
on
(
'Connect'
,
function
(
$serv
,
$fd
)
{
$this
->
tcp
->
on
(
'Connect'
,
function
(
$serv
,
$fd
)
{
...
...
app/Http/Resources/UserResource.php
View file @
cd47bb4f
...
@@ -30,7 +30,7 @@ class UserResource extends JsonResource
...
@@ -30,7 +30,7 @@ class UserResource extends JsonResource
},
},
$this
->
getAllPermissions
()
->
toArray
()
$this
->
getAllPermissions
()
->
toArray
()
),
),
'avatar'
=>
'
https://i.pravatar.cc
'
,
'avatar'
=>
'
/images/timg.jpeg
'
,
];
];
}
}
}
}
config/app.php
View file @
cd47bb4f
...
@@ -123,6 +123,12 @@ return [
...
@@ -123,6 +123,12 @@ return [
'cipher'
=>
'AES-256-CBC'
,
'cipher'
=>
'AES-256-CBC'
,
/*
* SSL 证书路径
*/
'ssl_cert_file'
=>
env
(
'SSL_CERT_FILE'
,
'/cert/apache/iot.zhkjgf.com_public.crt'
),
'ssl_key_file'
=>
env
(
'SSL_KEY_FILE'
,
'/cert/apache/iot.zhkjgf.com.key'
),
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
| Autoloaded Service Providers
| Autoloaded Service Providers
...
...
resources/js/assets/avatar.png
0 → 100644
View file @
cd47bb4f
2.44 KB
resources/js/layout/components/Navbar.vue
View file @
cd47bb4f
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
<div
class=
"avatar-wrapper"
>
<div
class=
"avatar-wrapper"
>
<img
:src=
"avatar
+'/128'
"
class=
"user-avatar"
>
<img
:src=
"avatar
_url
"
class=
"user-avatar"
>
<i
class=
"el-icon-caret-bottom"
/>
<i
class=
"el-icon-caret-bottom"
/>
</div>
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-menu
slot=
"dropdown"
>
...
@@ -55,6 +55,7 @@ import Screenfull from '@/components/Screenfull';
...
@@ -55,6 +55,7 @@ import Screenfull from '@/components/Screenfull';
import
SizeSelect
from
'@/components/SizeSelect'
;
import
SizeSelect
from
'@/components/SizeSelect'
;
import
LangSelect
from
'@/components/LangSelect'
;
import
LangSelect
from
'@/components/LangSelect'
;
import
Search
from
'@/components/HeaderSearch'
;
import
Search
from
'@/components/HeaderSearch'
;
import
imgUrl
from
'@/assets/avatar.png'
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -65,6 +66,11 @@ export default {
...
@@ -65,6 +66,11 @@ export default {
LangSelect
,
LangSelect
,
Search
,
Search
,
},
},
data
()
{
return
{
avatar_url
:
imgUrl
,
};
},
computed
:
{
computed
:
{
...
mapGetters
([
...
mapGetters
([
'sidebar'
,
'sidebar'
,
...
...
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