From 22ed5d851cfab7f9c97deb8bb64c8743f4cbdacd Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 15 Mar 2018 10:11:06 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/database.php | 4 ++-- route/route.php | 5 ++--- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 14 +++++++------- vendor/composer/autoload_static.php | 8 ++++---- 5 files changed, 16 insertions(+), 17 deletions(-) diff --git a/config/database.php b/config/database.php index 759d36015..f0882cd21 100644 --- a/config/database.php +++ b/config/database.php @@ -16,13 +16,13 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => 'thinkadmin.top', + 'hostname' => '127.0.0.1', // 数据库名 'database' => 'admin_v3', // 用户名 'username' => 'admin_v3', // 密码 - 'password' => '', + 'password' => 'FbYBHcWKr2', // 端口 'hostport' => '3306', // 连接dsn diff --git a/route/route.php b/route/route.php index 8ba7c80a1..281a702f0 100644 --- a/route/route.php +++ b/route/route.php @@ -15,7 +15,7 @@ use think\facade\Route; /* 去除下面注释可启用禁用功能 */ -//return []; +// return []; /* 测试环境禁止操作路由绑定 */ Route::post('admin/user/pass', function () { @@ -54,7 +54,6 @@ Route::post('admin/node/save', function () { Route::post('wechat/menu/edit', function () { return json(['code' => 0, 'msg' => '测试环境禁止修改微信菜单操作!']); }); -Route::get( - 'wechat/menu/cancel', function () { +Route::get('wechat/menu/cancel', function () { return json(['code' => 0, 'msg' => '测试环境禁止删除微信菜单操作!']); }); diff --git a/vendor/autoload.php b/vendor/autoload.php index 59f0819dc..eb05b85ef 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitdd5ef8f080ce2cf45025ed3e0d5ac047::getLoader(); +return ComposerAutoloaderInitf5ccf8306b43a082cf18a5c251d77c48::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index e6fac8f1d..dc3c6e6ae 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitdd5ef8f080ce2cf45025ed3e0d5ac047 +class ComposerAutoloaderInitf5ccf8306b43a082cf18a5c251d77c48 { private static $loader; @@ -19,15 +19,15 @@ class ComposerAutoloaderInitdd5ef8f080ce2cf45025ed3e0d5ac047 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(); - 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()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -48,19 +48,19 @@ class ComposerAutoloaderInitdd5ef8f080ce2cf45025ed3e0d5ac047 $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047::$files; + $includeFiles = Composer\Autoload\ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequiredd5ef8f080ce2cf45025ed3e0d5ac047($fileIdentifier, $file); + composerRequiref5ccf8306b43a082cf18a5c251d77c48($fileIdentifier, $file); } return $loader; } } -function composerRequiredd5ef8f080ce2cf45025ed3e0d5ac047($fileIdentifier, $file) +function composerRequiref5ccf8306b43a082cf18a5c251d77c48($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 461eac411..5dfc1d439 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047 +class ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48 { public static $files = array ( '1cfd2761b63b0a29ed23657ea394cb2d' => __DIR__ . '/..' . '/topthink/think-captcha/src/helper.php', @@ -251,9 +251,9 @@ class ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitdd5ef8f080ce2cf45025ed3e0d5ac047::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitf5ccf8306b43a082cf18a5c251d77c48::$classMap; }, null, ClassLoader::class); }