webman-优化

This commit is contained in:
2026-03-09 00:13:55 +08:00
parent 699761aad2
commit dab3b3148f
4 changed files with 14 additions and 12 deletions

View File

@@ -12,9 +12,9 @@ LANG_DEFAULT_LANG = zh-cn
DATABASE_DRIVER = mysql DATABASE_DRIVER = mysql
DATABASE_TYPE = mysql DATABASE_TYPE = mysql
DATABASE_HOSTNAME = 127.0.0.1 DATABASE_HOSTNAME = 127.0.0.1
DATABASE_DATABASE = buildadmin_com DATABASE_DATABASE = dafuweng-buildadmin
DATABASE_USERNAME = root DATABASE_USERNAME = dafuweng-buildadmin
DATABASE_PASSWORD = admin888 DATABASE_PASSWORD = 123456
DATABASE_HOSTPORT = 3306 DATABASE_HOSTPORT = 3306
DATABASE_CHARSET = utf8mb4 DATABASE_CHARSET = utf8mb4
DATABASE_PREFIX = DATABASE_PREFIX =

View File

@@ -6,9 +6,9 @@ return [
'driver' => 'mysql', 'driver' => 'mysql',
'host' => '127.0.0.1', 'host' => '127.0.0.1',
'port' => '3306', 'port' => '3306',
'database' => 'your_database', 'database' => env('DATABASE_DATABASE', 'dafuweng-buildadmin'),
'username' => 'your_username', 'username' => env('DATABASE_USERNAME', 'dafuweng-buildadmin'),
'password' => 'your_password', 'password' => env('DATABASE_PASSWORD', '123456'),
'charset' => 'utf8mb4', 'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci', 'collation' => 'utf8mb4_general_ci',
'prefix' => '', 'prefix' => '',

View File

@@ -56,11 +56,13 @@ Route::post('/api/ems/send', [\app\api\controller\Ems::class, 'send']);
// admin/index小写 // admin/index小写
Route::get('/admin/index/index', [\app\admin\controller\Index::class, 'index']); Route::get('/admin/index/index', [\app\admin\controller\Index::class, 'index']);
Route::get('/admin/index/login', [\app\admin\controller\Index::class, 'login']);
Route::post('/admin/index/login', [\app\admin\controller\Index::class, 'login']); Route::post('/admin/index/login', [\app\admin\controller\Index::class, 'login']);
Route::post('/admin/index/logout', [\app\admin\controller\Index::class, 'logout']); Route::post('/admin/index/logout', [\app\admin\controller\Index::class, 'logout']);
// 兼容前端请求 /admin/Index/*(首字母大写) // 兼容前端请求 /admin/Index/*(首字母大写)
Route::get('/admin/Index/index', [\app\admin\controller\Index::class, 'index']); Route::get('/admin/Index/index', [\app\admin\controller\Index::class, 'index']);
Route::get('/admin/Index/login', [\app\admin\controller\Index::class, 'login']);
Route::post('/admin/Index/login', [\app\admin\controller\Index::class, 'login']); Route::post('/admin/Index/login', [\app\admin\controller\Index::class, 'login']);
Route::post('/admin/Index/logout', [\app\admin\controller\Index::class, 'logout']); Route::post('/admin/Index/logout', [\app\admin\controller\Index::class, 'logout']);

View File

@@ -41,12 +41,12 @@ return [
'type' => $env('database.type', 'mysql'), 'type' => $env('database.type', 'mysql'),
// 服务器地址 // 服务器地址
'hostname' => $env('database.hostname', '127.0.0.1'), 'hostname' => $env('database.hostname', '127.0.0.1'),
// 数据库名 // 数据库名(与 database.php / .env 一致)
'database' => $env('database.database', 'buildadmin_com'), 'database' => $env('database.database', 'dafuweng-buildadmin'),
// 用户名 // 用户名(与 .env DATABASE_USERNAME 一致,默认勿用 root 以免与本机 MySQL 不符)
'username' => $env('database.username', 'root'), 'username' => $env('database.username', 'dafuweng-buildadmin'),
// 密码 // 密码(与 .env DATABASE_PASSWORD 一致)
'password' => $env('database.password', 'admin888'), 'password' => $env('database.password', '123456'),
// 端口 // 端口
'hostport' => $env('database.hostport', '3306'), 'hostport' => $env('database.hostport', '3306'),
// 数据库连接参数 // 数据库连接参数