mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-05 17:42:49 +08:00
修改创建文件逻辑
This commit is contained in:
@@ -12,12 +12,12 @@ use think\console\Output;
|
||||
|
||||
class VersionBase extends Command
|
||||
{
|
||||
public const VERSION = 'v2.0.72';
|
||||
public const VERSION = 'v2.0.73';
|
||||
|
||||
public const LAYUI_VERSION = '2.8.17';
|
||||
|
||||
public const COMMENT = [
|
||||
'增加自动创建缺失的js配置项;',
|
||||
'修改创建缺失文件逻辑;',
|
||||
'发布新版本',
|
||||
];
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ use app\admin\model\SystemAdmin;
|
||||
use app\BaseController;
|
||||
use app\common\constants\AdminConstant;
|
||||
use app\common\service\AuthService;
|
||||
use app\common\tools\PathTools;
|
||||
use think\facade\Env;
|
||||
use think\facade\View;
|
||||
use think\Model;
|
||||
@@ -159,12 +158,7 @@ class AdminControllerBase extends BaseController
|
||||
$content_js .= View::layout(false)->fetchJS($common_template);
|
||||
$content_js .= View::layout(false)->fetchJS($template);
|
||||
} catch (TemplateNotFoundException $th) {
|
||||
if (Env::get('adminsystem.make_view_js_while_missing', false)) {
|
||||
$template_file_path = $th->getTemplate();
|
||||
PathTools::intiDir($template_file_path);
|
||||
file_put_contents($template_file_path, '');
|
||||
$content_js = '';
|
||||
} elseif (Env::get('adminsystem.strict_view_js', true)) {
|
||||
if (Env::get('adminsystem.strict_view_js', true)) {
|
||||
throw $th;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user