Skip to content

Commit

Permalink
修正模型字段缓存对子目录的支持
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jul 11, 2023
1 parent 7a2b112 commit 66eb9cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/think/console/command/optimize/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ protected function execute(Input $input, Output $output)
if (0 === strpos($file, '.')) {
continue;
}

$class = '\\' . $namespace . '\\model\\' . pathinfo($file, PATHINFO_FILENAME);
if (!class_exists($class)) {
continue;
}

$this->buildModelSchema($class);
}
}
Expand Down

0 comments on commit 66eb9cf

Please sign in to comment.