diff --git a/src/system/database/dedesqli.class.php b/src/system/database/dedesqli.class.php index abc97bad..ef56ba94 100755 --- a/src/system/database/dedesqli.class.php +++ b/src/system/database/dedesqli.class.php @@ -107,9 +107,9 @@ class DedeSqli $this->linkID = mysqli_init(); try { mysqli_real_connect($this->linkID, $dbhost, $this->dbUser, $this->dbPwd, false, $dbport); - mysqli_errno($this->linkID) != 0 && $this->DisplayError('链接('.$this->pconnect.') 到MySQL发生错误'); + mysqli_errno($this->linkID) != 0 && $this->DisplayError('链接('.$this->pconnect.')到MySQL发生错误'); } catch (Exception $e) { - $this->DisplayError("连接数据库失败,可能数据库密码不对或数据库服务器出错"); + $this->DisplayError("连接数据库失败,可能数据库密码不对或数据库服务器出错"); exit; } @@ -118,7 +118,7 @@ class DedeSqli } //处理错误,成功连接则选择数据库 if (!$this->linkID) { - $this->DisplayError("连接数据库失败,可能数据库密码不对或数据库服务器出错"); + $this->DisplayError("连接数据库失败,可能数据库密码不对或数据库服务器出错"); exit(); } $this->isInit = TRUE; @@ -130,7 +130,7 @@ class DedeSqli mysqli_query($this->linkID, "SET sql_mode=''"); } if ($this->dbName && !@mysqli_select_db($this->linkID, $this->dbName)) { - $this->DisplayError('无法使用数据库'); + $this->DisplayError('连接数据库失败,可能数据库服务器奔溃'); } return TRUE; } diff --git a/src/system/helpers/extend.helper.php b/src/system/helpers/extend.helper.php index c515958f..39e2147c 100755 --- a/src/system/helpers/extend.helper.php +++ b/src/system/helpers/extend.helper.php @@ -29,7 +29,7 @@ if (!function_exists('ParCv')) { if (!function_exists('ParamError')) { function ParamError() { - ShowMsg('您输入的参数有误', '-1'); + ShowMsg('当前网页不存在,系统自动返回首页', 'index.php'); exit(); } }