add APP_RELEASE attach

This commit is contained in:
Timi
2026-11-06 23:58:29 +08:00
parent aef3864a31
commit a5426ce894
2 changed files with 4 additions and 2 deletions
@@ -151,7 +151,7 @@ public class AppVersionService {
/// @return 更新响应 /// @return 更新响应
private AppUpdateCheckResponse buildResponse(AppRelease release, boolean mandatory) { private AppUpdateCheckResponse buildResponse(AppRelease release, boolean mandatory) {
String url = ServletUriComponentsBuilder.fromCurrentContextPath() String url = ServletUriComponentsBuilder.fromCurrentContextPath()
.path("/attachment/download/") .path("/attach/download/")
.path(release.getAttachmentId()) .path(release.getAttachmentId())
.toUriString(); .toUriString();
return new AppUpdateCheckResponse(release.getVersionName(), url, release.getSha256(), mandatory); return new AppUpdateCheckResponse(release.getVersionName(), url, release.getSha256(), mandatory);
@@ -62,7 +62,9 @@ public class Attachment extends UUIDEntity {
TEMP_FILE, TEMP_FILE,
MIRROR MIRROR,
APP_RELEASE
} }
protected BizType bizType; protected BizType bizType;