[更新]修改数据库配置

This commit is contained in:
Anyon 2018-03-15 10:11:06 +08:00
parent 3ba4858362
commit 22ed5d851c
5 changed files with 16 additions and 17 deletions

View File

@ -16,13 +16,13 @@ return [
// 数据库类型 // 数据库类型
'type' => 'mysql', 'type' => 'mysql',
// 服务器地址 // 服务器地址
'hostname' => 'thinkadmin.top', 'hostname' => '127.0.0.1',
// 数据库名 // 数据库名
'database' => 'admin_v3', 'database' => 'admin_v3',
// 用户名 // 用户名
'username' => 'admin_v3', 'username' => 'admin_v3',
// 密码 // 密码
'password' => '', 'password' => 'FbYBHcWKr2',
// 端口 // 端口
'hostport' => '3306', 'hostport' => '3306',
// 连接dsn // 连接dsn

View File

@ -15,7 +15,7 @@
use think\facade\Route; use think\facade\Route;
/* 去除下面注释可启用禁用功能 */ /* 去除下面注释可启用禁用功能 */
//return []; // return [];
/* 测试环境禁止操作路由绑定 */ /* 测试环境禁止操作路由绑定 */
Route::post('admin/user/pass', function () { Route::post('admin/user/pass', function () {
@ -54,7 +54,6 @@ Route::post('admin/node/save', function () {
Route::post('wechat/menu/edit', function () { Route::post('wechat/menu/edit', function () {
return json(['code' => 0, 'msg' => '测试环境禁止修改微信菜单操作!']); return json(['code' => 0, 'msg' => '测试环境禁止修改微信菜单操作!']);
}); });
Route::get( Route::get('wechat/menu/cancel', function () {
'wechat/menu/cancel', function () {
return json(['code' => 0, 'msg' => '测试环境禁止删除微信菜单操作!']); return json(['code' => 0, 'msg' => '测试环境禁止删除微信菜单操作!']);
}); });

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php'; require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitdd5ef8f080ce2cf45025ed3e0d5ac047::getLoader(); return ComposerAutoloaderInitf5ccf8306b43a082cf18a5c251d77c48::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInitdd5ef8f080ce2cf45025ed3e0d5ac047 class ComposerAutoloaderInitf5ccf8306b43a082cf18a5c251d77c48
{ {
private static $loader; private static $loader;
@ -19,15 +19,15 @@ class ComposerAutoloaderInitdd5ef8f080ce2cf45025ed3e0d5ac047
return self::$loader; return self::$loader;
} }
spl_autoload_register(array('ComposerAutoloaderInitdd5ef8f080ce2cf45025ed3e0d5ac047', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInitf5ccf8306b43a082cf18a5c251d77c48', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(); self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitdd5ef8f080ce2cf45025ed3e0d5ac047', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInitf5ccf8306b43a082cf18a5c251d77c48', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) { if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php'; require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047::getInitializer($loader)); call_user_func(\Composer\Autoload\ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48::getInitializer($loader));
} else { } else {
$map = require __DIR__ . '/autoload_namespaces.php'; $map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) { foreach ($map as $namespace => $path) {
@ -48,19 +48,19 @@ class ComposerAutoloaderInitdd5ef8f080ce2cf45025ed3e0d5ac047
$loader->register(true); $loader->register(true);
if ($useStaticLoader) { if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047::$files; $includeFiles = Composer\Autoload\ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48::$files;
} else { } else {
$includeFiles = require __DIR__ . '/autoload_files.php'; $includeFiles = require __DIR__ . '/autoload_files.php';
} }
foreach ($includeFiles as $fileIdentifier => $file) { foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiredd5ef8f080ce2cf45025ed3e0d5ac047($fileIdentifier, $file); composerRequiref5ccf8306b43a082cf18a5c251d77c48($fileIdentifier, $file);
} }
return $loader; return $loader;
} }
} }
function composerRequiredd5ef8f080ce2cf45025ed3e0d5ac047($fileIdentifier, $file) function composerRequiref5ccf8306b43a082cf18a5c251d77c48($fileIdentifier, $file)
{ {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file; require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload; namespace Composer\Autoload;
class ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047 class ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48
{ {
public static $files = array ( public static $files = array (
'1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php', '1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php',
@ -251,9 +251,9 @@ class ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047
public static function getInitializer(ClassLoader $loader) public static function getInitializer(ClassLoader $loader)
{ {
return \Closure::bind(function () use ($loader) { return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047::$prefixLengthsPsr4; $loader->prefixLengthsPsr4 = ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047::$prefixDirsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047::$classMap; $loader->classMap = ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48::$classMap;
}, null, ClassLoader::class); }, null, ClassLoader::class);
} }