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
b0e7cae8
Commit
b0e7cae8
authored
Dec 17, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/alarm_order_vue
parents
7c064b78
89169587
Hide 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 @
b0e7cae8
...
...
@@ -236,8 +236,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 @
b0e7cae8
...
...
@@ -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