Skip to content
Snippets Groups Projects

Update server/report.php

Open jiajunw6 requested to merge jiajunw6-main-patch-94260 into main
1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
+ 2
3
@@ -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';
Loading