From 8e8179a7753bbd959e6c4f2e145d08434f15fcbb Mon Sep 17 00:00:00 2001 From: GamerNoTitle Date: Mon, 12 Feb 2024 17:14:40 +0800 Subject: [PATCH] Try to fix popup clear error --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 11485ad..fb62aeb 100644 --- a/main.py +++ b/main.py @@ -147,7 +147,7 @@ if __name__ == '__main__': print('正在尝试清除15分钟弹窗……') for popout in json.loads(res.text)['data']['list']: popid = popout['id'] - clear_result = r.post('https://api-cloudgame.mihoyo.com/hk4e_cg_cn/gamer/api/ackNotification', headers=headers, data={'id': popid}) + clear_result = r.post('https://api-cloudgame.mihoyo.com/hk4e_cg_cn/gamer/api/ackNotification', headers=headers, data={'id': str(popid)}) try: if clear_result.status_code == 200 and clear_result.json()['msg'] == 'OK': print(f'已清除id为{popid}的弹窗!')