[更新]修改数据库配置

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',
// 服务器地址
'hostname' => 'thinkadmin.top',
'hostname' => '127.0.0.1',
// 数据库名
'database' => 'admin_v3',
// 用户名
'username' => 'admin_v3',
// 密码
'password' => '',
'password' => 'FbYBHcWKr2',
// 端口
'hostport' => '3306',
// 连接dsn

View File

@ -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' => '测试环境禁止删除微信菜单操作!']);
});

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
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
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;

View File

@ -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);
}