modrinth_api.dart:拦截器改为只替换 options.baseUrl,path 保持相对 /v2/search、query 留在 queryParameters,避免"整串写回 path"导致的 host 缺失 + query 重复拼接。mirror_service.dart:新增 apiBase getter,返回当前镜像的 API base(official→api.modrinth.com、mcim→modrinth-api.mcimirror.top、custom→自定义 base) Signed-off-by: driftinblock <3480428251@qq.com>
25 lines
586 B
Dart
25 lines
586 B
Dart
/// 软件更新信息,由 Gitee 发布接口解析而来。
|
|
class UpdateInfo {
|
|
final String latestVersion;
|
|
final String downloadUrl;
|
|
final String apkName;
|
|
|
|
/// Gitee 发布说明(Markdown 原文)。
|
|
final String releaseNotes;
|
|
|
|
/// Gitee 发布接口返回的发布时间。
|
|
final DateTime? releasedAt;
|
|
|
|
/// Gitee 发布页地址。
|
|
final String releasePageUrl;
|
|
|
|
const UpdateInfo({
|
|
required this.latestVersion,
|
|
required this.downloadUrl,
|
|
required this.apkName,
|
|
this.releaseNotes = '',
|
|
this.releasedAt,
|
|
this.releasePageUrl = '',
|
|
});
|
|
}
|