This commit is contained in:
mmc
2026-02-28 16:20:21 +08:00
parent bb7748a9f2
commit eca4f00745
5 changed files with 99 additions and 378 deletions

View File

@@ -141,14 +141,12 @@ class PathRepositoryImpl implements PathRepository {
).replace(
queryParameters: {'workName': workName, '_t': timestamp.toString()},
);
print('请求URL: $url');
try {
final response = await http.get(url);
if (response.statusCode == 200) {
final data = jsonDecode(response.body) as Map<String, dynamic>;
print('响应数据: $data');
if (data['code'] == 200 && data.containsKey('data')) {
final dynamic rawData = data['data'];