We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae3dffa commit d8ec5b2Copy full SHA for d8ec5b2
lib/constants.dart
@@ -1,5 +1,7 @@
1
class Constants {
2
- static String gitlabBaseUrl = "https://framagit.org/oheroj/sound/-/raw/main/";
+ // static String gitlabBaseUrl = "https://framagit.org/oheroj/sound/-/raw/main/";
3
+
4
+ static String gitlabBaseUrl = "https://gitee.com/jihulai/sound/raw/main/";
5
6
// static String gitlabBaseUrl =
7
// "https://framagit.org/oheroj/sound/-/raw/main/";
lib/providers/gitlab_provider.dart
@@ -13,7 +13,7 @@ class GitlabProvider extends GetConnect {
13
14
Future<GtMain> getMainJson() async {
15
final response = await get('music.json');
16
- final body = jsonDecode(response.body);
+ final body = jsonDecode(response.bodyString!);
17
return GtMain.fromJson(body);
18
}
19
0 commit comments