diff --git a/system/ATool.php b/system/ATool.php index fbc57b7..acac28a 100644 --- a/system/ATool.php +++ b/system/ATool.php @@ -27,6 +27,13 @@ if($config['switch'] === 1){ exit; } +$layui_dir = "../static/Layui"; +foreach(scandir($layui_dir) as $value) { + if(is_dir($layui_dir . '/' . $value) && preg_match('/^v\d+\.\d+\.\d+$/', $value) && is_file("{$layui_dir}/$value/layui.js")) { + $layui['js'] = "../static/Layui/{$value}/layui.js"; + $layui['css'] = "../static/Layui/{$value}/css/layui.css"; + } +} session_name('ATool_SSID'); session_start(); @@ -228,7 +235,7 @@ function echo_Atool(){ ATool 工具箱 - +