Commit 32467dec authored by jiajunw6's avatar jiajunw6
Browse files

Update server/report.php

parent 7eafd63c
Pipeline #194737 failed with stages
in 0 seconds
......@@ -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';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment