From c9b4bda877907e5888dc98b5255b386cf9a793af Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Mon, 14 Nov 2011 02:54:10 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E8=AF=84=E5=AE=A1?= =?UTF-8?q?=E9=99=84=E4=BB=B6=E4=B8=8B=E8=BD=BD=E6=97=B6=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8=E7=9A=84=E5=88=A4=E6=96=AD?= =?UTF-8?q?=EF=BC=88=E5=A6=82=E6=9E=9C=E6=97=A0=E5=88=A4=E6=96=AD=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=B8=8B=E8=BD=BD=E7=9A=84=E6=96=87=E4=BB=B6=E4=B8=AD?= =?UTF-8?q?=E6=98=BE=E7=A4=BAZF=E6=8A=9B=E5=87=BA=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=A1=E6=81=AF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/ReviewController.php | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/application/default/controllers/ReviewController.php b/application/default/controllers/ReviewController.php index 8358b375..d683a5cf 100644 --- a/application/default/controllers/ReviewController.php +++ b/application/default/controllers/ReviewController.php @@ -444,6 +444,15 @@ class ReviewController extends Zend_Controller_Action $fullPath = $this->view->config->upload.$row['filename']; + if(!file_exists($fullPath)) + { + echo ' + + + 错误提示!文件读取出错,请稍后重试'; + exit(); + } + $fsize = filesize($fullPath); $path_parts = pathinfo($fullPath); $ext = strtolower($path_parts["extension"]); @@ -482,24 +491,16 @@ class ReviewController extends Zend_Controller_Action }catch(Exception $e){ echo ' - - - 无标题文档 - - - 文件读取出错,请稍后重试 -'; + + 错误提示!文件读取出错,请稍后重试'; + exit(); } }else{ echo ' - - - 无标题文档 - - - 读取用户信息出错,请先登录再下载附件重试 -'; + + 错误提示!读取用户信息出错,请先登录再下载附件重试'; + exit(); }