fix(kodbox_service): 修复 token 获取逻辑

This commit is contained in:
高手 2025-06-10 17:34:25 +08:00
parent 34a46dc698
commit d2605d4c26

View File

@ -15,7 +15,7 @@ class KodBoxService {
if (response.statusCode == 200) {
final data = jsonDecode(response.body);
if (data['code'] == true) {
return data['data']['accessToken'];
return data['info'];
} else {
throw Exception('获取token失败: ${data['info'] ?? '未知错误'}');
}