fix(gao): allow CI update log

This commit is contained in:
Timi
2026-11-15 17:15:34 +08:00
parent 7bbd217bdd
commit 32bfdaa116
@@ -109,9 +109,6 @@ public class AppVersionService {
boolean upToDate = 0 <= compareVersion(currentVersion, target.getVersionName()); boolean upToDate = 0 <= compareVersion(currentVersion, target.getVersionName());
List<AppUpdateNote> notes = new ArrayList<>(); List<AppUpdateNote> notes = new ArrayList<>();
for (AppRelease item : releaseMapper.selectPublished(product.getId(), AppRelease.Kind.BUNDLE)) { for (AppRelease item : releaseMapper.selectPublished(product.getId(), AppRelease.Kind.BUNDLE)) {
if (isMeaninglessNote(item.getNote())) {
continue;
}
// 上界恒定:不展示比通道版本更新的记录 // 上界恒定:不展示比通道版本更新的记录
if (0 < compareVersion(item.getVersionName(), target.getVersionName())) { if (0 < compareVersion(item.getVersionName(), target.getVersionName())) {
continue; continue;
@@ -172,16 +169,6 @@ public class AppVersionService {
return release; return release;
} }
/// 判断变更说明是否没有展示价值
///
/// 早期发布记录由 CI 写入构建号,对用户没有意义,日志与检查更新都跳过
///
/// @param note 变更说明
/// @return true 为不展示
private boolean isMeaninglessNote(String note) {
return TimiJava.isEmpty(note) || note.startsWith("CI 构建 ");
}
/// 原生包是否需要更新 /// 原生包是否需要更新
/// ///
/// @param release 通道当前发布记录 /// @param release 通道当前发布记录