mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进optimize::schema指令
This commit is contained in:
@@ -42,7 +42,7 @@ class Schema extends Command
|
||||
$list = scandir(APP_PATH . $module . DS . 'model');
|
||||
$app = App::$namespace;
|
||||
foreach ($list as $file) {
|
||||
if ('.' == $file || '..' == $file) {
|
||||
if (0 === strpos($file, '.')) {
|
||||
continue;
|
||||
}
|
||||
$class = '\\' . $app . '\\' . $module . '\\model\\' . pathinfo($file, PATHINFO_FILENAME);
|
||||
@@ -63,7 +63,7 @@ class Schema extends Command
|
||||
$app = App::$namespace;
|
||||
$list = scandir(APP_PATH . 'model');
|
||||
foreach ($list as $file) {
|
||||
if ('.' == $file || '..' == $file) {
|
||||
if (0 === strpos($file, '.')) {
|
||||
continue;
|
||||
}
|
||||
$class = '\\' . $app . '\\model\\' . pathinfo($file, PATHINFO_FILENAME);
|
||||
|
||||
Reference in New Issue
Block a user