add png handle 2

hotfix/远程访问多媒体中心
LMR 7 years ago
parent 7fde9e76e3
commit 568c03eb8c

@ -344,7 +344,7 @@ class Info_amp extends CI_Controller
//释放内存
imagedestroy($im);
$size = getimagesize($path);
if($png_base64) {
if($png_base64 && $size) {
echo(json_encode(array(
'status' => 'success',
'path' => '/information-view/from_word/'.$file,
@ -353,9 +353,7 @@ class Info_amp extends CI_Controller
)));
} else {
echo(json_encode(array(
'status' => 'error',
'width' => 0,
'height' => 0
'status' => 'error'
)));
}
}

Loading…
Cancel
Save