Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write null when Forgotten Hall Time is null #1021 #1023

Merged
merged 1 commit into from
Aug 6, 2024
Merged

write null when Forgotten Hall Time is null #1021 #1023

merged 1 commit into from
Aug 6, 2024

Conversation

JellyBeanXiewh
Copy link
Contributor

本周末日幻影数据不显示,分析日志发现是JSON解析错误,从米游社获取原始数据后发现快速通关的两层的challenge_time的值为nullForgottenHallTimeJsonConverter未写入数据,导致读取时解析错误。

附上原始JSON

{
    "retcode": 0,
    "message": "OK",
    "data": {
        "groups": [
            {
                "schedule_id": 3002,
                "begin_time": {
                    "year": 2024,
                    "month": 8,
                    "day": 5,
                    "hour": 4,
                    "minute": 0
                },
                "end_time": {
                    "year": 2024,
                    "month": 9,
                    "day": 16,
                    "hour": 4,
                    "minute": 0
                },
                "status": "New",
                "name_mi18n": "支配恶兽",
                "upper_boss": {
                    "id": 200401401,
                    "name_mi18n": "勾魂摄魄的支配者",
                    "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/9f570ed200f8feacaabf04ce1be5627f.png"
                },
                "lower_boss": {
                    "id": 801501201,
                    "name_mi18n": "诛尽杀绝的灭星兽",
                    "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/1ac74e32d2cc82c6ed30eb6811d7ceb2.png"
                }
            },
            {
                "schedule_id": 3001,
                "begin_time": {
                    "year": 2024,
                    "month": 6,
                    "day": 19,
                    "hour": 6,
                    "minute": 0
                },
                "end_time": {
                    "year": 2024,
                    "month": 8,
                    "day": 5,
                    "hour": 4,
                    "minute": 0
                },
                "status": "End",
                "name_mi18n": "冽风骑士",
                "upper_boss": {
                    "id": 100401401,
                    "name_mi18n": "无望冽风的幻灭者",
                    "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/31d5e4a578368af9a0edd29a2948bee5.png"
                },
                "lower_boss": {
                    "id": 302401301,
                    "name_mi18n": "芒寒色正的银骑士",
                    "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/5384edda3681d9a05f62afdaf9694b55.png"
                }
            }
        ],
        "star_num": 12,
        "max_floor": "支配恶兽·难度04",
        "battle_num": 3,
        "has_data": true,
        "all_floor_detail": [
            {
                "name": "支配恶兽·难度04",
                "star_num": "3",
                "node_1": {
                    "challenge_time": {
                        "year": 2024,
                        "month": 8,
                        "day": 5,
                        "hour": 13,
                        "minute": 7
                    },
                    "avatars": [
                        {
                            "id": 1304,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/66972e14ff3c419042c7da7c01a4813e.png",
                            "rarity": 5,
                            "element": "imaginary",
                            "rank": 0
                        },
                        {
                            "id": 1309,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/b6c2ae23f02a6f800131844efd459ef0.png",
                            "rarity": 5,
                            "element": "physical",
                            "rank": 0
                        },
                        {
                            "id": 1112,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/b3273b37654f3615f1d68cee910d0fec.png",
                            "rarity": 5,
                            "element": "fire",
                            "rank": 0
                        },
                        {
                            "id": 1305,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/7e51e52e33afc9fb777340e8a4403926.png",
                            "rarity": 5,
                            "element": "imaginary",
                            "rank": 0
                        }
                    ],
                    "buff": {
                        "id": 3111015,
                        "name_mi18n": "末路天堂",
                        "desc_mi18n": "追加攻击/反击对非弱点目标也能削减韧性,效果分别等同于原技能削韧值的50%/100%。",
                        "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/850c7cb5c7dba32a435c7b20c3d030a3.png"
                    },
                    "score": "3516",
                    "boss_defeated": true
                },
                "node_2": {
                    "challenge_time": {
                        "year": 2024,
                        "month": 8,
                        "day": 5,
                        "hour": 13,
                        "minute": 11
                    },
                    "avatars": [
                        {
                            "id": 1310,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/be4ca6099726995537edbd962ccdf84a.png",
                            "rarity": 5,
                            "element": "fire",
                            "rank": 2
                        },
                        {
                            "id": 8006,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/e1232b663917397791513373c38ebd3c.png",
                            "rarity": 5,
                            "element": "imaginary",
                            "rank": 6
                        },
                        {
                            "id": 1303,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/8f0d8deeafe54e4b10c6e8762fb86fe7.png",
                            "rarity": 5,
                            "element": "ice",
                            "rank": 0
                        },
                        {
                            "id": 1301,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/b744c1f19f17a08a8476d37a9a48aa5c.png",
                            "rarity": 4,
                            "element": "fire",
                            "rank": 6
                        }
                    ],
                    "buff": {
                        "id": 3111016,
                        "name_mi18n": "锐不可当",
                        "desc_mi18n": "敌方全体受到的击破伤害提高20%。",
                        "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/bf59484b4984b7c25cadddc311b58711.png"
                    },
                    "score": "3798",
                    "boss_defeated": true
                },
                "maze_id": 30024,
                "is_fast": false,
                "last_update_time": {
                    "year": 2024,
                    "month": 8,
                    "day": 5,
                    "hour": 13,
                    "minute": 11
                }
            },
            {
                "name": "支配恶兽·难度03",
                "star_num": "3",
                "node_1": {
                    "challenge_time": {
                        "year": 2024,
                        "month": 8,
                        "day": 5,
                        "hour": 12,
                        "minute": 57
                    },
                    "avatars": [
                        {
                            "id": 1304,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/66972e14ff3c419042c7da7c01a4813e.png",
                            "rarity": 5,
                            "element": "imaginary",
                            "rank": 0
                        },
                        {
                            "id": 1309,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/b6c2ae23f02a6f800131844efd459ef0.png",
                            "rarity": 5,
                            "element": "physical",
                            "rank": 0
                        },
                        {
                            "id": 1112,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/b3273b37654f3615f1d68cee910d0fec.png",
                            "rarity": 5,
                            "element": "fire",
                            "rank": 0
                        },
                        {
                            "id": 1305,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/7e51e52e33afc9fb777340e8a4403926.png",
                            "rarity": 5,
                            "element": "imaginary",
                            "rank": 0
                        }
                    ],
                    "buff": {
                        "id": 3111015,
                        "name_mi18n": "末路天堂",
                        "desc_mi18n": "追加攻击/反击对非弱点目标也能削减韧性,效果分别等同于原技能削韧值的50%/100%。",
                        "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/850c7cb5c7dba32a435c7b20c3d030a3.png"
                    },
                    "score": "3680",
                    "boss_defeated": true
                },
                "node_2": {
                    "challenge_time": {
                        "year": 2024,
                        "month": 8,
                        "day": 5,
                        "hour": 13,
                        "minute": 0
                    },
                    "avatars": [
                        {
                            "id": 1310,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/be4ca6099726995537edbd962ccdf84a.png",
                            "rarity": 5,
                            "element": "fire",
                            "rank": 2
                        },
                        {
                            "id": 8006,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/e1232b663917397791513373c38ebd3c.png",
                            "rarity": 5,
                            "element": "imaginary",
                            "rank": 6
                        },
                        {
                            "id": 1303,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/8f0d8deeafe54e4b10c6e8762fb86fe7.png",
                            "rarity": 5,
                            "element": "ice",
                            "rank": 0
                        },
                        {
                            "id": 1301,
                            "level": 80,
                            "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/b744c1f19f17a08a8476d37a9a48aa5c.png",
                            "rarity": 4,
                            "element": "fire",
                            "rank": 6
                        }
                    ],
                    "buff": {
                        "id": 3111016,
                        "name_mi18n": "锐不可当",
                        "desc_mi18n": "敌方全体受到的击破伤害提高20%。",
                        "icon": "https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/bf59484b4984b7c25cadddc311b58711.png"
                    },
                    "score": "3807",
                    "boss_defeated": true
                },
                "maze_id": 30023,
                "is_fast": false,
                "last_update_time": {
                    "year": 2024,
                    "month": 8,
                    "day": 5,
                    "hour": 13,
                    "minute": 0
                }
            },
            {
                "name": "支配恶兽·难度02",
                "star_num": "3",
                "node_1": {
                    "challenge_time": null,
                    "avatars": [],
                    "buff": null,
                    "score": "0",
                    "boss_defeated": false
                },
                "node_2": {
                    "challenge_time": null,
                    "avatars": [],
                    "buff": null,
                    "score": "0",
                    "boss_defeated": false
                },
                "maze_id": 30022,
                "is_fast": true,
                "last_update_time": {
                    "year": 2024,
                    "month": 8,
                    "day": 5,
                    "hour": 13,
                    "minute": 0
                }
            },
            {
                "name": "支配恶兽·难度01",
                "star_num": "3",
                "node_1": {
                    "challenge_time": null,
                    "avatars": [],
                    "buff": null,
                    "score": "0",
                    "boss_defeated": false
                },
                "node_2": {
                    "challenge_time": null,
                    "avatars": [],
                    "buff": null,
                    "score": "0",
                    "boss_defeated": false
                },
                "maze_id": 30021,
                "is_fast": true,
                "last_update_time": {
                    "year": 2024,
                    "month": 8,
                    "day": 5,
                    "hour": 13,
                    "minute": 0
                }
            }
        ],
        "max_floor_id": 30024
    }
}

@Scighost
Copy link
Owner

Scighost commented Aug 6, 2024

感谢

@Scighost Scighost merged commit 1afc49f into Scighost:main Aug 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants