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
89169587
Commit
89169587
authored
Dec 17, 2020
by
冯超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交工单模块
parent
91dedef5
Pipeline
#211
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
AlarmOrderController.php
app/Http/Controllers/AlarmOrderController.php
+2
-2
ZehongTcpController.php
app/Http/Controllers/Auth/ZehongTcpController.php
+1
-0
No files found.
app/Http/Controllers/AlarmOrderController.php
View file @
89169587
...
...
@@ -176,8 +176,8 @@ class AlarmOrderController extends Controller
}
//获取当前订单为第几步
public
function
orderin
(
Request
$request
){
$orderid
=
$request
->
input
(
'
o
id'
);
$status
=
AlarmOrder
::
where
(
'id'
,
'='
,
$orderid
)
->
value
(
'isorderone'
);
$orderid
=
$request
->
input
(
'id'
);
$status
=
AlarmOrder
::
where
(
'id'
,
'='
,
$orderid
)
->
select
(
'isorderone'
,
'id'
)
->
first
(
);
return
$this
->
jsonSuccessData
(
$status
);
}
}
app/Http/Controllers/Auth/ZehongTcpController.php
View file @
89169587
...
...
@@ -33,6 +33,7 @@ class ZehongTcpController extends Controller
$devicezijian
=
substr
(
$data
,
21
,
1
);
$devicecrc
=
substr
(
$data
,
22
,
4
);
$isdata
=
substr
(
$data
,
0
,
22
);
// return $this->jsonSuccessData([$this->getPrc($isdata),$devicecrc]);
if
(
$this
->
getPrc
(
$isdata
)
==
$devicecrc
){
$data
=
[
'id'
=>
$deviceId
,
'status'
=>
$status
,
'np'
=>
$devicenp
,
'famen'
=>
$devicefamen
,
'chongqi'
=>
$devicechongqi
,
'zijian'
=>
$devicezijian
];
$totcp
=
json_decode
(
$this
->
mysqldb
(
$data
),
true
);
...
...
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