mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 19:12:48 +08:00
修改目录的命名习惯;
This commit is contained in:
@@ -15,7 +15,7 @@ namespace app\common\command;
|
|||||||
|
|
||||||
use app\admin\model\SystemNode;
|
use app\admin\model\SystemNode;
|
||||||
use EasyAdmin\console\CliEcho;
|
use EasyAdmin\console\CliEcho;
|
||||||
use app\common\tools\BuildCurd;
|
use app\common\tools\BuildCurdTools;
|
||||||
use think\console\Command;
|
use think\console\Command;
|
||||||
use think\console\Input;
|
use think\console\Input;
|
||||||
use think\console\input\Option;
|
use think\console\input\Option;
|
||||||
@@ -55,7 +55,7 @@ class Curd extends Command
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$build = (new BuildCurd())
|
$build = (new BuildCurdTools())
|
||||||
->setTable($table)
|
->setTable($table)
|
||||||
->setForce($force);
|
->setForce($force);
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,9 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace app\common\command;
|
namespace app\common\command;
|
||||||
|
|
||||||
use app\common\tools\Path;
|
use app\common\tools\PathTools;
|
||||||
use think\console\Command;
|
use think\console\Command;
|
||||||
use think\console\Input;
|
use think\console\Input;
|
||||||
use think\console\input\Argument;
|
|
||||||
use think\console\input\Option;
|
use think\console\input\Option;
|
||||||
use think\console\Output;
|
use think\console\Output;
|
||||||
use think\facade\App;
|
use think\facade\App;
|
||||||
@@ -92,7 +91,7 @@ class Install extends Command
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
// 处理安装文件
|
// 处理安装文件
|
||||||
Path::intiDir($install_lock_path);
|
PathTools::intiDir($install_lock_path);
|
||||||
@file_put_contents($install_lock_path, date('Y-m-d H:i:s'));
|
@file_put_contents($install_lock_path, date('Y-m-d H:i:s'));
|
||||||
Db::commit();
|
Db::commit();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
namespace app\common\tools;
|
namespace app\common\tools;
|
||||||
|
|
||||||
use EasyAdmin\curd\BuildCurd as CurdBuildCurd;
|
use EasyAdmin\curd\BuildCurd;
|
||||||
use EasyAdmin\tool\CommonTool;
|
use EasyAdmin\tool\CommonTool;
|
||||||
|
|
||||||
class BuildCurd extends CurdBuildCurd
|
class BuildCurdTools extends BuildCurd
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -4,7 +4,7 @@ namespace app\common\tools;
|
|||||||
|
|
||||||
use think\facade\App;
|
use think\facade\App;
|
||||||
|
|
||||||
class Path
|
class PathTools
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 系统生成的文件,这些文件应当是可以任意删除的
|
* 系统生成的文件,这些文件应当是可以任意删除的
|
||||||
Reference in New Issue
Block a user