diff --git a/Amysql/Config.php b/Amysql/Config.php index 1f15f9b..0094b26 100644 --- a/Amysql/Config.php +++ b/Amysql/Config.php @@ -15,9 +15,9 @@ $Config ['index'] = "index.php"; // 默认使用数据库配置 ***************************************** $Config ['ConnectTag'] = 'default'; // Mysql连接标识 可同时进行多连接 -$Config ['Host'] = 'localhost:3306'; // Mysql主机地址 -$Config ['User'] = 'root'; // Mysql用户 -$Config ['Password'] = 'ookk1904'; // Mysql密码 +$Config ['Host'] = '127.0.0.1:3306'; // Mysql主机地址 +$Config ['User'] = 'minecraft'; // Mysql用户 +$Config ['Password'] = '325325'; // Mysql密码 $Config ['DBname'] = 'minecraft'; // 数据库名称 $Config ['CharSet'] = "UTF-8"; diff --git a/Model/mail.php b/Model/mail.php index e6eb868..614f4e3 100644 --- a/Model/mail.php +++ b/Model/mail.php @@ -1,4 +1,4 @@ -_sum ( "SELECT * FROM `authme` WHERE `email` = '$email'" ) == 0) { diff --git a/View/register.php b/View/register.php index ca7441d..6d05b85 100644 --- a/View/register.php +++ b/View/register.php @@ -118,7 +118,7 @@ $("#register").click(function(){ switch(C.status){ case "success": alert(C.info); - location.href = ""; + location.href = ""; break; case "error": alert(A.info);