add APP_RELEASE attach
This commit is contained in:
@@ -151,7 +151,7 @@ public class AppVersionService {
|
||||
/// @return 更新响应
|
||||
private AppUpdateCheckResponse buildResponse(AppRelease release, boolean mandatory) {
|
||||
String url = ServletUriComponentsBuilder.fromCurrentContextPath()
|
||||
.path("/attachment/download/")
|
||||
.path("/attach/download/")
|
||||
.path(release.getAttachmentId())
|
||||
.toUriString();
|
||||
return new AppUpdateCheckResponse(release.getVersionName(), url, release.getSha256(), mandatory);
|
||||
|
||||
@@ -62,7 +62,9 @@ public class Attachment extends UUIDEntity {
|
||||
|
||||
TEMP_FILE,
|
||||
|
||||
MIRROR
|
||||
MIRROR,
|
||||
|
||||
APP_RELEASE
|
||||
}
|
||||
|
||||
protected BizType bizType;
|
||||
|
||||
Reference in New Issue
Block a user