Skip to content

Commit 5bc06f3

Browse files
committed
修复路径
1 parent 101acaa commit 5bc06f3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

config/Config.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
if (!file_exists(__DIR__ . '/../config/.env')) die('请先完成设置');
1010
$config = array_merge(parse_ini_file(__DIR__ . '/../config/.env.example',true),parse_ini_file(__DIR__ . '/../config/.env',true));
11-
define('CONFIG',array_merge($config,[
12-
'image' => [
13-
'folder' => __DIR__ . $config['image']['folder'],
14-
],
15-
]));
11+
$config['image']['folder'] = __DIR__ . $config['image']['folder'];
12+
define('CONFIG',$config);
1613
unset($config);

0 commit comments

Comments
 (0)