更新版本提示优先自定义的路径

This commit is contained in:
augushong
2024-10-15 13:25:31 +08:00
parent 9128194891
commit afd8b81712
2 changed files with 7 additions and 3 deletions

View File

@@ -332,7 +332,11 @@ class AdminUpdateServiceBase
$output->writeln('更新完成');
// 更新完成
$update_tips = include $last_version_dir . '/extend/base/admin/service/adminUpdateData/tips.php';
$update_tips_file_path = $last_version_dir . '/app/admin/service/adminUpdateData/tips.php';
if(!file_exists($update_tips_file_path)){
$update_tips_file_path = $last_version_dir . '/extend/base/admin/service/adminUpdateData/tips.php';
}
$update_tips = include $update_tips_file_path;
// 按照版本号排序
usort($update_tips, function ($a, $b) {

View File

@@ -12,14 +12,14 @@ use think\console\Output;
class VersionBase extends Command
{
public const VERSION = 'v2.0.106';
public const VERSION = 'v2.0.107';
public const PRODUCT_VERSION = '';
public const LAYUI_VERSION = '2.8.17';
public const COMMENT = [
'修复更新底层机制错误',
'更新版本提示优先自定义的路径',
'发布新版本',
];