Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jiajunw6
Iotfinal
Commits
32467dec
Commit
32467dec
authored
May 16, 2022
by
jiajunw6
Browse files
Update server/report.php
parent
7eafd63c
Pipeline
#194737
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
server/report.php
View file @
32467dec
...
...
@@ -12,11 +12,11 @@ getint('id'); getstr('IMEI');
$device
=
new
device
();
$report
=
new
report
();
if
(
!
$device
->
load
(
$id
))
dieapp
(
'
设备ID不正确
'
);
if
(
!
$device
->
load
(
$id
))
dieapp
(
'
ID ERROR
'
);
$postdata
=
file_get_contents
(
"php://input"
);
$data
=
json_decode
(
$postdata
);
if
(
!
$data
)
dieapp
(
'JSON
格式不正确
'
);
if
(
!
$data
)
dieapp
(
'JSON
ERROR
'
);
$command
=
$defaultcommand
;
...
...
@@ -82,7 +82,6 @@ if($device->reportstatus=='recording') {
if
(
$device
->
loginuid
||
$noneedlogin
)
$login
=
1
;
else
$login
=
0
;
//有record最优先,然后url浏览再处理,没有再处理上传
$url
=
null
;
$fileid
=
null
;
if
(
$device
->
record
)
{
$command
=
'record'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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