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
dba786a1
Commit
dba786a1
authored
May 16, 2022
by
jiajunw6
Browse files
Update server/upload.php
parent
7eafd63c
Pipeline
#194736
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
server/upload.php
View file @
dba786a1
...
...
@@ -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
(
'
文件处理错误
'
);
dieapp
(
'
FILE ERROR
'
);
}
...
...
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