api修改和更新检查器修改

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>
This commit is contained in:
Ventiの酒 committed 2026-11-04 17:43:57 +08:00
1 parent ddd72c43fb
commit e32125aa8e
35 files changed
+4171 -1325

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
/// 软件更新信息,由 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 = '',
});
}