修复引入文件错误

This commit is contained in:
2023-09-18 18:09:03 +08:00
parent 01db0f9956
commit 9e2aa46cea
6 changed files with 10 additions and 5 deletions

View File

@@ -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')) {
/**

View File

@@ -0,0 +1,5 @@
<?php
return [
];

View File

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

View File

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

View File

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

View File

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