From 34415b5053836bdb728d6af71393da2231fe0e2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?=
<93301500+xushubieli@users.noreply.github.com>
Date: Thu, 2 Feb 2023 11:12:19 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=AD=A3=E7=A1=AE=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA=EF=BC=8C=E5=B9=B6=E5=8F=8D=E5=9B=9E=E4=B8=8A=E4=B8=80?=
=?UTF-8?q?=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/system/database/dedesqli.class.php | 8 ++++----
src/system/helpers/extend.helper.php | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
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();
}
}