在review中下载错误提示里输出html
This commit is contained in:
parent
3fe036d10b
commit
e0b5d8a252
|
@ -480,10 +480,26 @@ class ReviewController extends Zend_Controller_Action
|
|||
$sql = "update attachments set downtimes=downtimes+1 where id = $id";
|
||||
@$this->db->exec($sql);
|
||||
}catch(Exception $e){
|
||||
echo '文件读取出错,请稍后重试';
|
||||
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>无标题文档</title>
|
||||
</head>
|
||||
|
||||
<body>文件读取出错,请稍后重试</body>
|
||||
</html>';
|
||||
}
|
||||
}else{
|
||||
echo '读取用户信息出错,请先登录再下载附件';
|
||||
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>无标题文档</title>
|
||||
</head>
|
||||
|
||||
<body>读取用户信息出错,请先登录再下载附件重试</body>
|
||||
</html>';
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue