Skip to content
Snippets Groups Projects
Commit 32467dec authored by jiajunw6's avatar jiajunw6
Browse files

Update server/report.php

parent 7eafd63c
No related branches found
No related tags found
1 merge request!3Update server/report.php
Pipeline #194737 failed
...@@ -12,11 +12,11 @@ getint('id'); getstr('IMEI'); ...@@ -12,11 +12,11 @@ getint('id'); getstr('IMEI');
$device=new device(); $report=new report(); $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"); $postdata = file_get_contents("php://input");
$data = json_decode($postdata); $data = json_decode($postdata);
if(!$data) dieapp('JSON格式不正确'); if(!$data) dieapp('JSON ERROR');
$command=$defaultcommand; $command=$defaultcommand;
...@@ -82,7 +82,6 @@ if($device->reportstatus=='recording') { ...@@ -82,7 +82,6 @@ if($device->reportstatus=='recording') {
if($device->loginuid||$noneedlogin) $login=1; else $login=0; if($device->loginuid||$noneedlogin) $login=1; else $login=0;
//有record最优先,然后url浏览再处理,没有再处理上传
$url=null; $fileid=null; $url=null; $fileid=null;
if($device->record) { if($device->record) {
$command='record'; $command='record';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment