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:
35 files changed
+4171
-1325
No files matched your search
@@ -10,6 +10,7 @@ import '../settings/settings_page.dart';
|
||||
import 'server_card.dart';
|
||||
import 'server_form_dialog.dart';
|
||||
import '../../core/l10n/strings.dart';
|
||||
import '../../core/widgets/z_widgets.dart';
|
||||
|
||||
class ServerListPage extends StatefulWidget {
|
||||
const ServerListPage({super.key});
|
||||
@@ -192,7 +193,7 @@ class _ServerListPageState extends State<ServerListPage> {
|
||||
final hasWallpaper = context.watch<WallpaperProvider>().hasWallpaper;
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
appBar: ZAppBar(
|
||||
title: const Text('ZV Manager'),
|
||||
backgroundColor: hasWallpaper ? Colors.transparent : null,
|
||||
elevation: hasWallpaper ? 0 : null,
|
||||
|
||||
Reference in new issue
Block a user