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