mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
修复引入文件错误
This commit is contained in:
@@ -10,7 +10,7 @@ use think\facade\Event;
|
||||
use think\facade\Filesystem;
|
||||
use think\route\Url;
|
||||
|
||||
include_once __DIR__ . '/app/common/app/functions.php';
|
||||
include_once __DIR__ . '/common/app/functions.php';
|
||||
|
||||
if (!function_exists('__url')) {
|
||||
/**
|
||||
|
||||
5
app/common/app/provider.php
Normal file
5
app/common/app/provider.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
];
|
||||
@@ -27,7 +27,7 @@ $event = [
|
||||
],
|
||||
];
|
||||
|
||||
$listen = include __DIR__ . '/app/common/app/listen.php';
|
||||
$listen = include __DIR__ . '/common/app/listen.php';
|
||||
|
||||
$event['listen'] = array_merge($event['listen'], $listen);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ $middleware_default = [
|
||||
100 => \think\middleware\SessionInit::class,
|
||||
];
|
||||
|
||||
$middleware_common = include_once __DIR__ . '/app/common/app/middleware.php';
|
||||
$middleware_common = include_once __DIR__ . '/common/app/middleware.php';
|
||||
|
||||
$middleware = array_merge($middleware_default, $middleware_common);
|
||||
|
||||
|
||||
@@ -12,6 +12,6 @@ $provider_default = [
|
||||
'think\View' => View::class,
|
||||
];
|
||||
|
||||
$provider_common = include_once __DIR__ . '/app/common/app/provider.php';
|
||||
$provider_common = include_once __DIR__ . '/common/app/provider.php';
|
||||
|
||||
return array_merge($provider_default, $provider_common);
|
||||
|
||||
@@ -7,7 +7,7 @@ $service_default = [
|
||||
1 => 'think\\app\\Service',
|
||||
];
|
||||
|
||||
$service_common = include_once __DIR__ . '/app/common/app/service.php';
|
||||
$service_common = include_once __DIR__ . '/common/app/service.php';
|
||||
|
||||
$service = array_merge($service_default, $service_common);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user