|
|
|
|
@ -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'
|
|
|
|
|
)));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|