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(); }