From ea6b8767849223ccc6b37629d3b9cae1331fa7cb Mon Sep 17 00:00:00 2001 From: devil_gong Date: Tue, 18 Dec 2018 11:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Common/Conf/debug.php | 23 ----------------------- Application/Common/Conf/develop.php | 23 ----------------------- Application/Common/Conf/master.php | 23 ----------------------- Application/Common/Conf/test.php | 23 ----------------------- core.php | 4 ++-- 5 files changed, 2 insertions(+), 94 deletions(-) delete mode 100755 Application/Common/Conf/debug.php delete mode 100755 Application/Common/Conf/develop.php delete mode 100755 Application/Common/Conf/master.php delete mode 100755 Application/Common/Conf/test.php diff --git a/Application/Common/Conf/debug.php b/Application/Common/Conf/debug.php deleted file mode 100755 index e9cf345ba..000000000 --- a/Application/Common/Conf/debug.php +++ /dev/null @@ -1,23 +0,0 @@ - 'mysql', // 数据库类型 - 'DB_HOST' => '127.0.0.1', // 服务器地址 - 'DB_NAME' => 'shopxo', // 数据库名 - 'DB_USER' => 'root', // 用户名 - 'DB_PWD' => 'root', // 密码 - 'DB_PORT' => 3306, // 端口 - 'DB_PARAMS' => array(), // 数据库连接参数 - 'DB_PREFIX' => 's_', // 数据库表前缀 - 'DB_CHARSET'=> 'utf8mb4', // 字符集 - 'DB_DEBUG' => false, // 数据库调试模式 开启后可以记录SQL日志 -); -?> \ No newline at end of file diff --git a/Application/Common/Conf/develop.php b/Application/Common/Conf/develop.php deleted file mode 100755 index e9cf345ba..000000000 --- a/Application/Common/Conf/develop.php +++ /dev/null @@ -1,23 +0,0 @@ - 'mysql', // 数据库类型 - 'DB_HOST' => '127.0.0.1', // 服务器地址 - 'DB_NAME' => 'shopxo', // 数据库名 - 'DB_USER' => 'root', // 用户名 - 'DB_PWD' => 'root', // 密码 - 'DB_PORT' => 3306, // 端口 - 'DB_PARAMS' => array(), // 数据库连接参数 - 'DB_PREFIX' => 's_', // 数据库表前缀 - 'DB_CHARSET'=> 'utf8mb4', // 字符集 - 'DB_DEBUG' => false, // 数据库调试模式 开启后可以记录SQL日志 -); -?> \ No newline at end of file diff --git a/Application/Common/Conf/master.php b/Application/Common/Conf/master.php deleted file mode 100755 index 55144452d..000000000 --- a/Application/Common/Conf/master.php +++ /dev/null @@ -1,23 +0,0 @@ - 'mysql', // 数据库类型 - 'DB_HOST' => '127.0.0.1', // 服务器地址 - 'DB_NAME' => 'demo_shopxo', // 数据库名 - 'DB_USER' => 'demo_shopxo', // 用户名 - 'DB_PWD' => 'XMSHriXTyHjTJa4f', // 密码 - 'DB_PORT' => 3306, // 端口 - 'DB_PARAMS' => array(), // 数据库连接参数 - 'DB_PREFIX' => 's_', // 数据库表前缀 - 'DB_CHARSET'=> 'utf8mb4', // 字符集 - 'DB_DEBUG' => false, // 数据库调试模式 开启后可以记录SQL日志 -); -?> \ No newline at end of file diff --git a/Application/Common/Conf/test.php b/Application/Common/Conf/test.php deleted file mode 100755 index e9cf345ba..000000000 --- a/Application/Common/Conf/test.php +++ /dev/null @@ -1,23 +0,0 @@ - 'mysql', // 数据库类型 - 'DB_HOST' => '127.0.0.1', // 服务器地址 - 'DB_NAME' => 'shopxo', // 数据库名 - 'DB_USER' => 'root', // 用户名 - 'DB_PWD' => 'root', // 密码 - 'DB_PORT' => 3306, // 端口 - 'DB_PARAMS' => array(), // 数据库连接参数 - 'DB_PREFIX' => 's_', // 数据库表前缀 - 'DB_CHARSET'=> 'utf8mb4', // 字符集 - 'DB_DEBUG' => false, // 数据库调试模式 开启后可以记录SQL日志 -); -?> \ No newline at end of file diff --git a/core.php b/core.php index 1908e944d..9371a2cff 100755 --- a/core.php +++ b/core.php @@ -39,10 +39,10 @@ if(is_dir("./Install") && !file_exists("./Install/install.lock")) } // 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false -define('APP_DEBUG', true); +define('APP_DEBUG', false); // 分之模式,master,develop,test,debug -define('APP_STATUS', 'develop'); +define('APP_STATUS', 'master'); /* 定义系统目录分隔符 */ //define('DS', DIRECTORY_SEPARATOR); -- GitLab