JSON转Model 报错Cannot read properties of undefined (reading 'fieldName')
Closed this issue · 2 comments
MooRoakee commented
web版1.6.8
json内容:
{
"data": [
{
"airdate": "2022-09-29",
"name": "1",
"name_cn": "1",
"duration": "00:23:40",
"desc": "1",
"ep": 25,
"id": 1073368,
"subject_id": 326895,
"comment": 19,
"type": 0,
"disc": 0,
"duration_seconds": 1420,
"sort": 1
}
],
"total": 25,
"limit": 100,
"offset": 0
}
把json里的sort
字段去掉就能成功
{
"data": [
{
"airdate": "2022-09-29",
"name": "1",
"name_cn": "1",
"duration": "00:23:40",
"desc": "1",
"ep": 25,
"id": 1073368,
"subject_id": 326895,
"comment": 19,
"type": 0,
"disc": 0,
"duration_seconds": 1420
}
],
"total": 25,
"limit": 100,
"offset": 0
}
work7z commented
您好,
很抱歉有这个问题,刚刚我们这边试了的确是有报错,感觉可能是sort这个字段有冲突…
我们会尽快修复这个问题,并及时向您反馈,感谢
… On Sep 29, 2022, at 1:30 PM, 默其妙 ***@***.***> wrote:
{
"data": [
{
"airdate": "2022-09-29",
"name": "1",
"name_cn": "1",
"duration": "00:23:40",
"desc": "1",
"ep": 25,
"id": 1073368,
"subject_id": 326895,
"comment": 19,
"type": 0,
"disc": 0,
"duration_seconds": 1420,
"sort": 1
}
],
"total": 25,
"limit": 100,
"offset": 0
}
work7z commented
您好,此问题已经修复好了,请升级到v1.6.81版本重新尝试哈。
这个问题应该是由于sort被判断为函数,导致一些空指针问题,我们已经重新改正了