Commit dba786a1 authored by jiajunw6's avatar jiajunw6
Browse files

Update server/upload.php

parent 7eafd63c
Pipeline #194736 failed with stages
in 0 seconds
......@@ -13,10 +13,10 @@ file_put_contents('upload.txt',cdate('Y-m-d H:i:s.u').PHP_EOL.json_encode($_GET)
$device=new device(); $file=new file();
if(!$device->load($id)) dieapp('设备ID不正确');
if(!$device->load($id)) dieapp('ID ERROR');
if($mode=='camera') $ext='.mp4'; else if($mode=='recorder') $ext='.mp3'; else dieapp('设备mode不正确');
if($mode=='camera') $ext='.mp4'; else if($mode=='recorder') $ext='.mp3'; else dieapp('MODE ERROR');
if(!$fileid) {
if(!isdate(cdate('Y-m-d H:i:s',$starttime))) $starttime=null; else $starttime=cdate('Y-m-d H:i:s',$starttime);
......@@ -66,7 +66,7 @@ if(!$fileid) {
} else {
dieapp('FILE ERROR');
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