Skip to content

Commit d8ec5b2

Browse files
committed
feat: 换资源
1 parent ae3dffa commit d8ec5b2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/constants.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
class Constants {
2-
static String gitlabBaseUrl = "https://framagit.org/oheroj/sound/-/raw/main/";
2+
// static String gitlabBaseUrl = "https://framagit.org/oheroj/sound/-/raw/main/";
3+
4+
static String gitlabBaseUrl = "https://gitee.com/jihulai/sound/raw/main/";
35

46
// static String gitlabBaseUrl =
57
// "https://framagit.org/oheroj/sound/-/raw/main/";

lib/providers/gitlab_provider.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class GitlabProvider extends GetConnect {
1313

1414
Future<GtMain> getMainJson() async {
1515
final response = await get('music.json');
16-
final body = jsonDecode(response.body);
16+
final body = jsonDecode(response.bodyString!);
1717
return GtMain.fromJson(body);
1818
}
1919
}

0 commit comments

Comments
 (0)