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
673ec07e
Commit
673ec07e
authored
Dec 17, 2020
by
冯超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tcp模块协议
parent
75ea2f15
Pipeline
#208
canceled with stages
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
+12
-3
swooleMeTcp.php
app/Console/Commands/swooleMeTcp.php
+4
-2
AlarmOrderController.php
app/Http/Controllers/AlarmOrderController.php
+6
-0
ZehongTcpController.php
app/Http/Controllers/Auth/ZehongTcpController.php
+1
-1
api.php
routes/api.php
+1
-0
No files found.
app/Console/Commands/swooleMeTcp.php
View file @
673ec07e
...
...
@@ -65,7 +65,7 @@ class swooleMeTcp extends Command
'max_connection'
=>
50
,
'daemonize'
=>
0
,
//守护进程
'backlog'
=>
128
,
'heartbeat_check_interval'
=>
30
,
'heartbeat_check_interval'
=>
30
0
,
'heartbeat_idle_time'
=>
65
,
]);
//监听连接进入事件
...
...
@@ -89,7 +89,9 @@ class swooleMeTcp extends Command
// }
$swooletcp
=
new
ZehongTcpController
();
// $swooletcp->swooletcplist($data);
$serv
->
send
(
$fd
,
$swooletcp
->
swooletcplist
(
$data
));
$todata
=
$swooletcp
->
swooletcplist
(
$data
);
Log
::
channel
(
'slack'
)
->
info
(
'返回值'
.
$todata
);
$serv
->
send
(
$fd
,
$todata
);
});
//监听连接关闭事件
...
...
app/Http/Controllers/AlarmOrderController.php
View file @
673ec07e
...
...
@@ -174,4 +174,10 @@ class AlarmOrderController extends Controller
return
$this
->
jsonErrorData
(
500
,
'删除工单失败!'
);
}
}
//获取当前订单为第几步
public
function
orderin
(
Request
$request
){
$orderid
=
$request
->
input
(
'oid'
);
$status
=
AlarmOrder
::
where
(
'id'
,
'='
,
$orderid
)
->
value
(
'isorderone'
);
return
$this
->
jsonSuccessData
(
$status
);
}
}
app/Http/Controllers/Auth/ZehongTcpController.php
View file @
673ec07e
routes/api.php
View file @
673ec07e
...
...
@@ -54,6 +54,7 @@ Route::group(['middleware' => 'auth:api'], function () {
Route
::
post
(
'alarm_order/order_ok'
,
'AlarmOrderController@update'
);
// 修改工单
Route
::
delete
(
'alarm_order/{id}'
,
'AlarmOrderController@destroy'
);
// 删除工单
Route
::
get
(
'alarm_order/show'
,
'AlarmOrderController@show'
);
// 工单详情
Route
::
get
(
'alarm_order/order_in'
,
'AlarmOrderController@orderin'
);
// 获取当前订单为第几步
});
//上传图片路由
...
...
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