mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
改进Build类
This commit is contained in:
@@ -193,6 +193,10 @@ class Build
|
|||||||
protected static function buildCommon($module)
|
protected static function buildCommon($module)
|
||||||
{
|
{
|
||||||
$filename = CONF_PATH . ($module ? $module . DS : '') . 'config.php';
|
$filename = CONF_PATH . ($module ? $module . DS : '') . 'config.php';
|
||||||
|
|
||||||
|
if (!is_dir(dirname($filename))) {
|
||||||
|
mkdir(dirname($filename, 0755, true));
|
||||||
|
}
|
||||||
if (!is_file($filename)) {
|
if (!is_file($filename)) {
|
||||||
file_put_contents($filename, "<?php\n//配置文件\nreturn [\n\n];");
|
file_put_contents($filename, "<?php\n//配置文件\nreturn [\n\n];");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user