From 568c03eb8ceb32d934730d4861e1069fdb6c5921 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Thu, 27 Dec 2018 15:05:11 +0800 Subject: [PATCH] add png handle 2 --- application/controllers/info_amp.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/application/controllers/info_amp.php b/application/controllers/info_amp.php index 869847f6..d17bcc0e 100644 --- a/application/controllers/info_amp.php +++ b/application/controllers/info_amp.php @@ -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' ))); } }