删除冗余代码&修复bug

This commit is contained in:
JaguarJack
2020-07-14 17:35:16 +08:00
parent fc93826016
commit 8a901e89cb
6 changed files with 39 additions and 55 deletions

View File

@@ -54,7 +54,7 @@ class CatchAdmin
*/
public static function cacheDirectory(): string
{
return self::makeDirectory(app()->getRuntimePath() . self::NAME . DIRECTORY_SEPARATOR);
return self::makeDirectory(app()->getRuntimePath() . self::$root . DIRECTORY_SEPARATOR);
}
/**
@@ -139,6 +139,7 @@ class CatchAdmin
/**
*
* @time 2019年12月12日
* @param bool $select
* @return array
*/
public static function getModulesInfo($select = true): array