fix(mobile-app): 修复实名认证响应解析层级错误
后端返回嵌套结构 { data: { data: {...} } },
前端需要双层解析才能获取实际数据
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c14b87305c
commit
0c6e73de85
|
|
@ -478,7 +478,9 @@ class KycService {
|
||||||
}
|
}
|
||||||
|
|
||||||
final responseData = response.data as Map<String, dynamic>;
|
final responseData = response.data as Map<String, dynamic>;
|
||||||
final data = responseData['data'] as Map<String, dynamic>;
|
// 后端返回格式: { success, data: { code, message, data: {...实际数据...} } }
|
||||||
|
final outerData = responseData['data'] as Map<String, dynamic>;
|
||||||
|
final data = outerData['data'] as Map<String, dynamic>;
|
||||||
return RealNameVerifyResponse.fromJson(data);
|
return RealNameVerifyResponse.fromJson(data);
|
||||||
} on ApiException {
|
} on ApiException {
|
||||||
rethrow;
|
rethrow;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue