KimigaiiWuyi / GenshinUID

支持OneBot(QQ)、OneBotV12、QQ频道、微信、KOOK(开黑啦)、Telegram(电报)、FeiShu(飞书)、DoDo、Villa(米游社大别野)、Discord的全功能HoshinoBot/NoneBot2/Koishi/yunzai/ZeroBot原神机器人插件
https://docs.sayu-bot.com
GNU General Public License v3.0
746 stars 101 forks source link

【bug】体力定时推送概率性报错 #638

Open mengluo04 opened 2 months ago

mengluo04 commented 2 months ago

image

KimigaiiWuyi commented 2 months ago

应该已修复

mengluo04 commented 2 months ago

应该已修复

经测试正常,谢谢!

mengluo04 commented 2 months ago

应该已修复

出现了新的错误 image

KimigaiiWuyi commented 2 months ago

可以更新后测试一下

mengluo04 commented 2 months ago

可以更新后测试一下

08-11 21:30:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'retcode': 0, 'message': 'OK', 'data': {'current_resin': 45, 'max_resin': 200, 'resin_recovery_time': '74004', 'finished_task_num': 4, 'total_task_num': 4, 'is_extra_task_reward_received': True, 'remain_resin_discount_num': 1, 'resin_discount_num_limit': 3, 'current_expedition_num': 5, 'max_expedition_num': 5, 'expeditions': [{'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/88c712d29e7d09f80ecccace40a579ce.png', 'status': 'Ongoing', 'remained_time': '4904'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/79afc3ffdf5daa9dc5b84f3a2197e673.png', 'status': 'Ongoing', 'remained_time': '4904'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/649e11627c4519f630bff1ad6ee31b77.png', 'status': 'Ongoing', 'remained_time': '4904'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/a9b45a05cedff67bbc3662f7d902a029.png', 'status': 'Ongoing', 'remained_time': '4904'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/8d27f84fa150de571d9122833a2e690f.png', 'status': 'Ongoing', 'remained_time': '4904'}], 'current_home_coin': 1050, 'max_home_coin': 2400, 'home_coin_recovery_time': '160515', 'calendar_url': '', 'transformer': {'obtained': True, 'recovery_time': {'Day': 6, 'Hour': 0, 'Minute': 0, 'Second': 0, 'reached': False}, 'wiki': 'https://bbs.mihoyo.com/ys/obc/content/1562/detail?bbs_presentation_style=no_header', 'noticed': False, 'latest_job_id': '0'}, 'daily_task': {'total_num': 4, 'finished_num': 4, 'is_extra_task_reward_received': True, 'task_rewards': [{'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}], 'attendance_rewards': [{'status': 'AttendanceRewardStatusTakenAward', 'progress': 2000}, {'status': 'AttendanceRewardStatusTakenAward', 'progress': 2000}, {'status': 'AttendanceRewardStatusTakenAward', 'progress': 2000}, {'status': 'AttendanceRewardStatusTakenAward', 'progress': 2000}], 'attendance_visible': True, 'stored_attendance': '74.3', 'stored_attendance_refresh_countdown': 1416600}, 'archon_quest_progress': {'list': [], 'is_open_archon_quest': True, 'is_finish_all_mainline': True, 'is_finish_all_interchapter': True, 'wiki_url': ''}}} 08-11 21:30:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'x-rpc-app_version': '2.71.1', 'X-Requested-With': 'com.mihoyo.hyperion', 'User-Agent': 'Mozilla/5.0 (Linux; Android 13; PHK110 Build/SKQ1.221119.001; wv)AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.133 Mobile Safari/537.36 miHoYoBBS/2.71.1', 'x-rpc-client_type': '5', 'Referer': 'https://webstatic.mihoyo.com/', 'Origin': 'https://webstatic.mihoyo.com/', 'DS': '1723383000,114828,907d45714115f3d308637f542a1e8cea', 'Cookie': 'account_id=81894464;cookie_token=uwrmU7Ryz1An0xsrpzGdFkckCtiB4KxWz2a0kcGl', 'x-rpc-device_fp': '38d7f191c78a0', 'x-rpc-device_id': 'b0f8603f-008b-4206-b910-b1368ae91dce'} 08-11 21:30:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'retcode': 0, 'message': 'OK', 'data': {'current_resin': 116, 'max_resin': 200, 'resin_recovery_time': '40300', 'finished_task_num': 0, 'total_task_num': 4, 'is_extra_task_reward_received': False, 'remain_resin_discount_num': 1, 'resin_discount_num_limit': 3, 'current_expedition_num': 5, 'max_expedition_num': 5, 'expeditions': [{'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/79afc3ffdf5daa9dc5b84f3a2197e673.png', 'status': 'Ongoing', 'remained_time': '4776'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/88c712d29e7d09f80ecccace40a579ce.png', 'status': 'Ongoing', 'remained_time': '4776'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/a9b45a05cedff67bbc3662f7d902a029.png', 'status': 'Ongoing', 'remained_time': '4776'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/649e11627c4519f630bff1ad6ee31b77.png', 'status': 'Ongoing', 'remained_time': '4776'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/8d27f84fa150de571d9122833a2e690f.png', 'status': 'Ongoing', 'remained_time': '4776'}], 'current_home_coin': 1404, 'max_home_coin': 2400, 'home_coin_recovery_time': '137582', 'calendar_url': '', 'transformer': {'obtained': True, 'recovery_time': {'Day': 0, 'Hour': 0, 'Minute': 0, 'Second': 0, 'reached': True}, 'wiki': 'https://bbs.mihoyo.com/ys/obc/content/1562/detail?bbs_presentation_style=no_header', 'noticed': False, 'latest_job_id': '0'}, 'daily_task': {'total_num': 4, 'finished_num': 0, 'is_extra_task_reward_received': False, 'task_rewards': [{'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}], 'attendance_rewards': [{'status': 'AttendanceRewardStatusWaitTaken', 'progress': 2000}, {'status': 'AttendanceRewardStatusWaitTaken', 'progress': 2000}, {'status': 'AttendanceRewardStatusWaitTaken', 'progress': 2000}, {'status': 'AttendanceRewardStatusWaitTaken', 'progress': 2000}], 'attendance_visible': True, 'stored_attendance': '58.5', 'stored_attendance_refresh_countdown': 1416600}, 'archon_quest_progress': {'list': [], 'is_open_archon_quest': True, 'is_finish_all_mainline': True, 'is_finish_all_interchapter': True, 'wiki_url': ''}}} 08-11 21:30:00 [INFO] plugins.GenshinUID.GenshinUID.genshinuid_resin | [推送检查]完成!等待消息推送中... 08-11 21:30:00 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {'NoneBot2': {...}} Job "notice_job (trigger: cron[minute='*/30'], next run at: 2024-08-11 22:00:00 CST)" raised an exception Traceback (most recent call last): File "/root/.cache/pypoetry/virtualenvs/gsuid-core-y7-8B4ky-py3.10/lib/python3.10/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job retval = await job.func(*job.args, **job.kwargs) File "/home/software/gsuid_core/gsuid_core/plugins/GenshinUID/GenshinUID/genshinuid_resin/__init__.py", line 53, in notice_job for user_id in result[bot_id]['direct']: KeyError: 'direct' 还是报错,21.18使用core全部更新更新了,日志里显示了更新 image

KimigaiiWuyi commented 2 months ago

我这边无法复现,是否可以提供 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {'NoneBot2': {...}}中的值

mengluo04 commented 2 months ago

我这边无法复现,是否可以提供 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {'NoneBot2': {...}}中的值

这两天正常了,但是发现了其他的问题,体力,洞天宝钱推送了一次之后推送状态变成on,后面就不会再推送了,开了催命模式也没用,就算请了体力也不会推送,推送状态不会变。还有强制推送也会受推送状态的影响,不确定受不受设置的阈值的影响

KimigaiiWuyi commented 2 months ago

我这边无法复现,是否可以提供 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {'NoneBot2': {...}}中的值

这两天正常了,但是发现了其他的问题,体力,洞天宝钱推送了一次之后推送状态变成on,后面就不会再推送了,开了催命模式也没用,就算请了体力也不会推送,推送状态不会变。还有强制推送也会受推送状态的影响,不确定受不受设置的阈值的影响

理论上等下次检查推送的时候, 如果体力低于阈值, 该状态就会变为off的才对, 然后如果开了催命模式就不受该值影响了, 你是否开完之后没有重启core呢

mengluo04 commented 2 months ago

我这边无法复现,是否可以提供 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {'NoneBot2': {...}}中的值

这两天正常了,但是发现了其他的问题,体力,洞天宝钱推送了一次之后推送状态变成on,后面就不会再推送了,开了催命模式也没用,就算请了体力也不会推送,推送状态不会变。还有强制推送也会受推送状态的影响,不确定受不受设置的阈值的影响

理论上等下次检查推送的时候, 如果体力低于阈值, 该状态就会变为off的才对, 然后如果开了催命模式就不受该值影响了, 你是否开完之后没有重启core呢

我再仔细测试一下

mengluo04 commented 2 months ago

我这边无法复现,是否可以提供 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {'NoneBot2': {...}}中的值

这两天正常了,但是发现了其他的问题,体力,洞天宝钱推送了一次之后推送状态变成on,后面就不会再推送了,开了催命模式也没用,就算请了体力也不会推送,推送状态不会变。还有强制推送也会受推送状态的影响,不确定受不受设置的阈值的影响

理论上等下次检查推送的时候, 如果体力低于阈值, 该状态就会变为off的才对, 然后如果开了催命模式就不受该值影响了, 你是否开完之后没有重启core呢 第一次获取到的时候是正确的数据: 08-14 10:00:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'retcode': 0, 'message': 'OK', 'data': {'current_resin': 84, 'max_resin': 200, 'resin_recovery_time': '55377', 'finished_task_num': 0, 'total_task_num': 4, 'is_extra_task_reward_received': False, 'remain_resin_discount_num': 3, 'resin_discount_num_limit': 3, 'current_expedition_num': 5, 'max_expedition_num': 5, 'expeditions': [{'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/88c712d29e7d09f80ecccace40a579ce.png', 'status': 'Ongoing', 'remained_time': '43872'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/79afc3ffdf5daa9dc5b84f3a2197e673.png', 'status': 'Ongoing', 'remained_time': '43872'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/649e11627c4519f630bff1ad6ee31b77.png', 'status': 'Ongoing', 'remained_time': '43872'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/a9b45a05cedff67bbc3662f7d902a029.png', 'status': 'Ongoing', 'remained_time': '43872'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/8d27f84fa150de571d9122833a2e690f.png', 'status': 'Ongoing', 'remained_time': '43872'}], 'current_home_coin': 2400, 'max_home_coin': 2400, 'home_coin_recovery_time': '0', 'calendar_url': '', 'transformer': {'obtained': True, 'recovery_time': {'Day': 3, 'Hour': 0, 'Minute': 0, 'Second': 0, 'reached': False}, 'wiki': 'https://bbs.mihoyo.com/ys/obc/content/1562/detail?bbs_presentation_style=no_header', 'noticed': False, 'latest_job_id': '0'}, 'daily_task': {'total_num': 4, 'finished_num': 0, 'is_extra_task_reward_received': False, 'task_rewards': [{'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}], 'attendance_rewards': [{'status': 'AttendanceRewardStatusWaitTaken', 'progress': 2000}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}], 'attendance_visible': True, 'stored_attendance': '70.3', 'stored_attendance_refresh_countdown': 1198800}, 'archon_quest_progress': {'list': [], 'is_open_archon_quest': True, 'is_finish_all_mainline': True, 'is_finish_all_interchapter': True, 'wiki_url': ''}}} 然后又进行了一次过码服务,查询的数据就有问题了 08-14 10:00:08 [DEBUG] gsuid_core.utils.api.mys.base_request | {'retcode': 0, 'message': 'OK', 'data': {'current_resin': 179, 'max_resin': 200, 'resin_recovery_time': '9692', 'finished_task_num': 0, 'total_task_num': 4, 'is_extra_task_reward_received': False, 'remain_resin_discount_num': 3, 'resin_discount_num_limit': 3, 'current_expedition_num': 5, 'max_expedition_num': 5, 'expeditions': [{'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/79afc3ffdf5daa9dc5b84f3a2197e673.png', 'status': 'Finished', 'remained_time': '0'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/88c712d29e7d09f80ecccace40a579ce.png', 'status': 'Finished', 'remained_time': '0'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/a9b45a05cedff67bbc3662f7d902a029.png', 'status': 'Finished', 'remained_time': '0'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/649e11627c4519f630bff1ad6ee31b77.png', 'status': 'Finished', 'remained_time': '0'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/8d27f84fa150de571d9122833a2e690f.png', 'status': 'Finished', 'remained_time': '0'}], 'current_home_coin': 338, 'max_home_coin': 2400, 'home_coin_recovery_time': '284548', 'calendar_url': '', 'transformer': {'obtained': True, 'recovery_time': {'Day': 6, 'Hour': 0, 'Minute': 0, 'Second': 0, 'reached': False}, 'wiki': 'https://bbs.mihoyo.com/ys/obc/content/1562/detail?bbs_presentation_style=no_header', 'noticed': False, 'latest_job_id': '0'}, 'daily_task': {'total_num': 4, 'finished_num': 0, 'is_extra_task_reward_received': False, 'task_rewards': [{'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}], 'attendance_rewards': [{'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}], 'attendance_visible': True, 'stored_attendance': '60.5', 'stored_attendance_refresh_countdown': 1198792}, 'archon_quest_progress': {'list': [], 'is_open_archon_quest': True, 'is_finish_all_mainline': True, 'is_finish_all_interchapter': True, 'wiki_url': ''}}} 下面是完整的日志 08-14 10:00:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'x-rpc-app_version': '2.71.1', 'X-Requested-With': 'com.mihoyo.hyperion', 'User-Agent': 'Mozilla/5.0 (Linux; Android 13; TEL-AN00a HONORTEL-AN00a; wv)AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/104.0.5112.97Mobile Safari/537.36 miHoYoBBS/22.71.1', 'x-rpc-client_type': '5', 'Referer': 'https://webstatic.mihoyo.com/', 'Origin': 'https://webstatic.mihoyo.com/', 'DS': '1723600800,106039,b70e81c5d12e9feea570cf377698108c', 'Cookie': 'account_id=283142557;cookie_token=Is9QnKLx6hLf6znDmu1X8eRsvZWS2yC9NmG7eH2K', 'x-rpc-device_fp': '38d7ee6003836', 'x-rpc-device_id': 'eadffced-cc90-457c-8d6b-40c740c72539'} 08-14 10:00:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'x-rpc-app_version': '2.71.1', 'X-Requested-With': 'com.mihoyo.hyperion', 'User-Agent': 'Mozilla/5.0 (Linux; Android 13; TEL-AN00a HONORTEL-AN00a; wv)AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/104.0.5112.97Mobile Safari/537.36 miHoYoBBS/22.71.1', 'x-rpc-client_type': '5', 'Referer': 'https://webstatic.mihoyo.com/', 'Origin': 'https://webstatic.mihoyo.com/', 'DS': '1723600800,174640,0c96d1486e30f60580a7011c3fdeaac4', 'Cookie': 'account_id=283142557;cookie_token=Is9QnKLx6hLf6znDmu1X8eRsvZWS2yC9NmG7eH2K', 'x-rpc-device_fp': '38d7ee6003836', 'x-rpc-device_id': 'eadffced-cc90-457c-8d6b-40c740c72539'} 08-14 10:00:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'retcode': 0, 'message': 'OK', 'data': {'current_resin': 84, 'max_resin': 200, 'resin_recovery_time': '55377', 'finished_task_num': 0, 'total_task_num': 4, 'is_extra_task_reward_received': False, 'remain_resin_discount_num': 3, 'resin_discount_num_limit': 3, 'current_expedition_num': 5, 'max_expedition_num': 5, 'expeditions': [{'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/88c712d29e7d09f80ecccace40a579ce.png', 'status': 'Ongoing', 'remained_time': '43872'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/79afc3ffdf5daa9dc5b84f3a2197e673.png', 'status': 'Ongoing', 'remained_time': '43872'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/649e11627c4519f630bff1ad6ee31b77.png', 'status': 'Ongoing', 'remained_time': '43872'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/a9b45a05cedff67bbc3662f7d902a029.png', 'status': 'Ongoing', 'remained_time': '43872'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/8d27f84fa150de571d9122833a2e690f.png', 'status': 'Ongoing', 'remained_time': '43872'}], 'current_home_coin': 2400, 'max_home_coin': 2400, 'home_coin_recovery_time': '0', 'calendar_url': '', 'transformer': {'obtained': True, 'recovery_time': {'Day': 3, 'Hour': 0, 'Minute': 0, 'Second': 0, 'reached': False}, 'wiki': 'https://bbs.mihoyo.com/ys/obc/content/1562/detail?bbs_presentation_style=no_header', 'noticed': False, 'latest_job_id': '0'}, 'daily_task': {'total_num': 4, 'finished_num': 0, 'is_extra_task_reward_received': False, 'task_rewards': [{'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}], 'attendance_rewards': [{'status': 'AttendanceRewardStatusWaitTaken', 'progress': 2000}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}], 'attendance_visible': True, 'stored_attendance': '70.3', 'stored_attendance_refresh_countdown': 1198800}, 'archon_quest_progress': {'list': [], 'is_open_archon_quest': True, 'is_finish_all_mainline': True, 'is_finish_all_interchapter': True, 'wiki_url': ''}}} 08-14 10:00:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'retcode': 0, 'message': 'OK', 'data': {'current_stamina': 49, 'max_stamina': 240, 'stamina_recover_time': 68532, 'accepted_epedition_num': 4, 'total_expedition_num': 4, 'expeditions': [{'avatars': ['https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/5e40e15856bb5cf0e125c2de15ca63d8.png', 'https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/50858e997abc7b29f475dcd1960b1dea.png'], 'status': 'Ongoing', 'remaining_time': 22127, 'name': '离垢清净', 'item_url': 'https://act-webstatic.mihoyo.com/game_record/hkrpg/SpriteOutput/ItemIcon/114011.png'}, {'avatars': ['https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/6bc93cc3f590b1baf8b01ff0d1f0d896.png', 'https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/4494a2cbaed942e6c76e8debb50beace.png'], 'status': 'Ongoing', 'remaining_time': 22127, 'name': '无名之地,无名之人', 'item_url': 'https://act-webstatic.mihoyo.com/game_record/hkrpg/SpriteOutput/ItemIcon/211.png'}, {'avatars': ['https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/08d54ac4b80ca302547e729383f489c7.png', 'https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/4938d3537241d7c92b9958534e20e1e0.png'], 'status': 'Ongoing', 'remaining_time': 22127, 'name': '阿卡夏记录', 'item_url': 'https://act-webstatic.mihoyo.com/game_record/hkrpg/SpriteOutput/ItemIcon/221.png'}, {'avatars': ['https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/670d2239f0606bb75349e82c88963a25.png', 'https://act-webstatic.mihoyo.com/darkmatter/hkrpg/prod_gf_cn/item_icon_ud09dc/402db3829c9b099f91983a772f426148.png'], 'status': 'Ongoing', 'remaining_time': 22127, 'name': '赡养人类', 'item_url': 'https://act-webstatic.mihoyo.com/game_record/hkrpg/SpriteOutput/ItemIcon/181012.png'}], 'current_train_score': 400, 'max_train_score': 500, 'current_rogue_score': 0, 'max_rogue_score': 14000, 'weekly_cocoon_cnt': 3, 'weekly_cocoon_limit': 3, 'current_reserve_stamina': 1, 'is_reserve_stamina_full': False, 'rogue_tourn_weekly_unlocked': True, 'rogue_tourn_weekly_max': 1000, 'rogue_tourn_weekly_cur': 0}} Job "sr_notice_job (trigger: cron[minute='*/30'], next run at: 2024-08-14 10:30:00 CST)" raised an exception Traceback (most recent call last): File "/root/.cache/pypoetry/virtualenvs/gsuid-core-y7-8B4ky-py3.10/lib/python3.10/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job retval = await job.func(*job.args, **job.kwargs) File "/home/software/gsuid_core/gsuid_core/plugins/StarRailUID/StarRailUID/starrailuid_stamina/__init__.py", line 43, in sr_notice_job result = await get_notice_list() File "/home/software/gsuid_core/gsuid_core/plugins/StarRailUID/StarRailUID/starrailuid_stamina/notice.py", line 29, in get_notice_list push_data = await GsPush.select_data_by_uid(user.sr_uid, 'sr') File "/home/software/gsuid_core/gsuid_core/utils/database/base_models.py", line 45, in wrapper data = await func(self, session, *args, **kwargs) File "/home/software/gsuid_core/gsuid_core/utils/database/base_models.py", line 1476, in select_data_by_uid getattr(cls, cls.get_gameid_name(game_name)) == uid, File "/root/.cache/pypoetry/virtualenvs/gsuid-core-y7-8B4ky-py3.10/lib/python3.10/site-packages/pydantic/_internal/_model_construction.py", line 237, in __getattr__ raise AttributeError(item) AttributeError: sr_uid 08-14 10:00:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'x-rpc-app_version': '2.71.1', 'X-Requested-With': 'com.mihoyo.hyperion', 'User-Agent': 'Mozilla/5.0 (Linux; Android 13; PHK110 Build/SKQ1.221119.001; wv)AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.133 Mobile Safari/537.36 miHoYoBBS/2.71.1', 'x-rpc-client_type': '5', 'Referer': 'https://webstatic.mihoyo.com/', 'Origin': 'https://webstatic.mihoyo.com/', 'DS': '1723600800,116926,02a266d92333ebd3153f235891b267a0', 'Cookie': 'account_id=81894464;cookie_token=uwrmU7Ryz1An0xsrpzGdFkckCtiB4KxWz2a0kcGl', 'x-rpc-device_fp': '38d7f191c78a0', 'x-rpc-device_id': 'b0f8603f-008b-4206-b910-b1368ae91dce'} 08-14 10:00:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'data': None, 'message': '', 'retcode': 1034} 08-14 10:00:00 [INFO] gsuid_core.utils.api.mys.pass_request | [upass] 进入处理... 08-14 10:00:00 [DEBUG] gsuid_core.utils.api.mys.base_request | {'x-rpc-app_version': '2.71.1', 'X-Requested-With': 'com.mihoyo.hyperion', 'User-Agent': 'Mozilla/5.0 (Linux; Android 13; PHK110 Build/SKQ1.221119.001; wv)AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.133 Mobile Safari/537.36 miHoYoBBS/2.71.1', 'x-rpc-client_type': '5', 'Referer': 'https://webstatic.mihoyo.com/', 'Origin': 'https://webstatic.mihoyo.com/', 'DS': '1723600800,172600,ff923716b78a86468017aec51738c940', 'Cookie': 'account_id=81894464;cookie_token=uwrmU7Ryz1An0xsrpzGdFkckCtiB4KxWz2a0kcGl', 'x-rpc-device_fp': '38d7f191c78a0', 'x-rpc-device_id': 'b0f8603f-008b-4206-b910-b1368ae91dce', 'x-rpc-challenge_game': '2', 'x-rpc-page': 'v4.1.5-ys_#ys', 'x-rpc-tool-verison': 'v4.1.5-ys'} 08-14 10:00:01 [DEBUG] gsuid_core.utils.api.mys.base_request | {'retcode': 0, 'message': 'OK', 'data': {'challenge': '47278adcda7e9c9f775416a186cbc37d', 'gt': '846fea0fd833b173bec7a25920851739', 'new_captcha': 1, 'success': 1}} 08-14 10:00:07 [DEBUG] gsuid_core.utils.api.mys.pass_request | {'code': 0, 'info': 'success', 'data': {'gt': '846fea0fd833b173bec7a25920851739', 'challenge': '47278adcda7e9c9f775416a186cbc37d', 'validate': '3e7cffefad13c7dd514ab62be53d8972', 'type': 'click|icon'}, 'times': 1486} 08-14 10:00:07 [DEBUG] gsuid_core.utils.api.mys.base_request | {'x-rpc-app_version': '2.71.1', 'X-Requested-With': 'com.mihoyo.hyperion', 'User-Agent': 'Mozilla/5.0 (Linux; Android 13; PHK110 Build/SKQ1.221119.001; wv)AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.133 Mobile Safari/537.36 miHoYoBBS/2.71.1', 'x-rpc-client_type': '5', 'Referer': 'https://webstatic.mihoyo.com/', 'Origin': 'https://webstatic.mihoyo.com/', 'DS': '1723600807,132966,de6bbe165868893a494f7e989ef43d3f', 'Cookie': 'account_id=81894464;cookie_token=uwrmU7Ryz1An0xsrpzGdFkckCtiB4KxWz2a0kcGl', 'x-rpc-device_fp': '38d7f191c78a0', 'x-rpc-device_id': 'b0f8603f-008b-4206-b910-b1368ae91dce', 'x-rpc-challenge_game': '2', 'x-rpc-page': 'v4.1.5-ys_#ys', 'x-rpc-tool-verison': 'v4.1.5-ys'} 08-14 10:00:08 [DEBUG] gsuid_core.utils.api.mys.base_request | {'retcode': 0, 'message': 'OK', 'data': {'challenge': '47278adcda7e9c9f775416a186cbc37d'}} 08-14 10:00:08 [INFO] gsuid_core.utils.api.mys.pass_request | [upass] 获取ch -> 47278adcda7e9c9f775416a186cbc37d 08-14 10:00:08 [DEBUG] gsuid_core.utils.api.mys.base_request | {'x-rpc-app_version': '2.71.1', 'X-Requested-With': 'com.mihoyo.hyperion', 'User-Agent': 'Mozilla/5.0 (Linux; Android 13; PHK110 Build/SKQ1.221119.001; wv)AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.133 Mobile Safari/537.36 miHoYoBBS/2.71.1', 'x-rpc-client_type': '5', 'Referer': 'https://webstatic.mihoyo.com/', 'Origin': 'https://webstatic.mihoyo.com/', 'DS': '1723600808,145320,6e60af83e340ef27008b3d7a6f853c25', 'Cookie': 'account_id=81894464;cookie_token=uwrmU7Ryz1An0xsrpzGdFkckCtiB4KxWz2a0kcGl', 'x-rpc-device_fp': '38d7f191c78a0', 'x-rpc-device_id': 'b0f8603f-008b-4206-b910-b1368ae91dce', 'x-rpc-challenge_game': '2', 'x-rpc-page': 'v4.1.5-ys_#ys', 'x-rpc-tool-verison': 'v4.1.5-ys', 'x-rpc-challenge': '47278adcda7e9c9f775416a186cbc37d'} 08-14 10:00:08 [DEBUG] gsuid_core.utils.api.mys.base_request | {'retcode': 0, 'message': 'OK', 'data': {'current_resin': 179, 'max_resin': 200, 'resin_recovery_time': '9692', 'finished_task_num': 0, 'total_task_num': 4, 'is_extra_task_reward_received': False, 'remain_resin_discount_num': 3, 'resin_discount_num_limit': 3, 'current_expedition_num': 5, 'max_expedition_num': 5, 'expeditions': [{'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/79afc3ffdf5daa9dc5b84f3a2197e673.png', 'status': 'Finished', 'remained_time': '0'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/88c712d29e7d09f80ecccace40a579ce.png', 'status': 'Finished', 'remained_time': '0'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/a9b45a05cedff67bbc3662f7d902a029.png', 'status': 'Finished', 'remained_time': '0'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/649e11627c4519f630bff1ad6ee31b77.png', 'status': 'Finished', 'remained_time': '0'}, {'avatar_side_icon': 'https://act-webstatic.mihoyo.com/hk4e/e20200928calculate/item_avatar_side_icon_u705lg/8d27f84fa150de571d9122833a2e690f.png', 'status': 'Finished', 'remained_time': '0'}], 'current_home_coin': 338, 'max_home_coin': 2400, 'home_coin_recovery_time': '284548', 'calendar_url': '', 'transformer': {'obtained': True, 'recovery_time': {'Day': 6, 'Hour': 0, 'Minute': 0, 'Second': 0, 'reached': False}, 'wiki': 'https://bbs.mihoyo.com/ys/obc/content/1562/detail?bbs_presentation_style=no_header', 'noticed': False, 'latest_job_id': '0'}, 'daily_task': {'total_num': 4, 'finished_num': 0, 'is_extra_task_reward_received': False, 'task_rewards': [{'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}, {'status': 'TaskRewardStatusUnfinished'}], 'attendance_rewards': [{'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}, {'status': 'AttendanceRewardStatusUnfinished', 'progress': 0}], 'attendance_visible': True, 'stored_attendance': '60.5', 'stored_attendance_refresh_countdown': 1198792}, 'archon_quest_progress': {'list': [], 'is_open_archon_quest': True, 'is_finish_all_mainline': True, 'is_finish_all_interchapter': True, 'wiki_url': ''}}} 08-14 10:00:08 [INFO] plugins.GenshinUID.GenshinUID.genshinuid_resin | [推送检查]完成!等待消息推送中... 08-14 10:00:08 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {}

KimigaiiWuyi commented 2 months ago

这个数据是官方直接提供的才对, 不应该不正确 我看10点整的时候体力84, 10点08分的时候体力179, 你指的数据不对是这个吗?(是否由于查的账号不一样)

另外你的cookie漏了

mengluo04 commented 2 months ago

这个数据是官方直接提供的才对, 不应该不正确 我看10点整的时候体力84, 10点08分的时候体力179, 你指的数据不对是这个吗?(是否由于查的账号不一样)

另外你的cookie漏了

对,10点0秒的时候是84,8秒的时候过了验证码就变成179了,cookie我退出一下米游社就失效了,问题不大

KimigaiiWuyi commented 2 months ago

这个很奇怪, 因为控制台打印的数据是直接请求API得到的, gscore没有任何修改 理论上就是游戏内的数值才对

mengluo04 commented 2 months ago

这个很奇怪, 因为控制台打印的数据是直接请求API得到的, gscore没有任何修改 理论上就是游戏内的数值才对

我也是说,便签查出来又没问题 第一次拿到了数据为啥还会去过码呢

KimigaiiWuyi commented 2 months ago

这个很奇怪, 因为控制台打印的数据是直接请求API得到的, gscore没有任何修改 理论上就是游戏内的数值才对

我也是说,便签查出来又没问题 第一次拿到了数据为啥还会去过码呢

你得看过码前一次请求, retcode是否为1034/5003/10035/10041 另外你现在应该是战绩源了吧, 还是小组件?

mengluo04 commented 2 months ago

是战绩 1a7f45a9c3654890bc5ff575d32c8e44 十点整的时候是正常的retcode=0,然后sr那边报了个错,接下来就又请求了一次,就1034了,开始过码,过码之后树脂就变成179了

mengluo04 commented 2 months ago

这次没过码,数据还是错乱的 image 后台推送里面的状态也没变 image

KimigaiiWuyi commented 2 months ago

这难道不是两个不同的UID的API请求结果么 看上去应该是推送遍历表, 检查不同UID的结果

mengluo04 commented 2 months ago

这难道不是两个不同的UID的API请求结果么 看上去应该是推送遍历表, 检查不同UID的结果

草,这么一说我菜反应过来,我一直想成我的了。

mengluo04 commented 2 months ago

我这边无法复现,是否可以提供 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {'NoneBot2': {...}}中的值

这两天正常了,但是发现了其他的问题,体力,洞天宝钱推送了一次之后推送状态变成on,后面就不会再推送了,开了催命模式也没用,就算请了体力也不会推送,推送状态不会变。还有强制推送也会受推送状态的影响,不确定受不受设置的阈值的影响

理论上等下次检查推送的时候, 如果体力低于阈值, 该状态就会变为off的才对, 然后如果开了催命模式就不受该值影响了, 你是否开完之后没有重启core呢

确认过了,开了催命模式,也重启了,宝钱2400/2400,体力超过设定阈值没推送,推送管理页面的状态也都是on

KimigaiiWuyi commented 2 months ago

我这边无法复现,是否可以提供 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {'NoneBot2': {...}}中的值

这两天正常了,但是发现了其他的问题,体力,洞天宝钱推送了一次之后推送状态变成on,后面就不会再推送了,开了催命模式也没用,就算请了体力也不会推送,推送状态不会变。还有强制推送也会受推送状态的影响,不确定受不受设置的阈值的影响

理论上等下次检查推送的时候, 如果体力低于阈值, 该状态就会变为off的才对, 然后如果开了催命模式就不受该值影响了, 你是否开完之后没有重启core呢

确认过了,开了催命模式,也重启了,宝钱2400/2400,体力超过设定阈值没推送,推送管理页面的状态也都是on

可以截图一下推送表嘛, 你那一行圈一下 我用了几天好像没发现有问题

mengluo04 commented 2 months ago

我这边无法复现,是否可以提供 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {'NoneBot2': {...}}中的值

这两天正常了,但是发现了其他的问题,体力,洞天宝钱推送了一次之后推送状态变成on,后面就不会再推送了,开了催命模式也没用,就算请了体力也不会推送,推送状态不会变。还有强制推送也会受推送状态的影响,不确定受不受设置的阈值的影响

理论上等下次检查推送的时候, 如果体力低于阈值, 该状态就会变为off的才对, 然后如果开了催命模式就不受该值影响了, 你是否开完之后没有重启core呢

确认过了,开了催命模式,也重启了,宝钱2400/2400,体力超过设定阈值没推送,推送管理页面的状态也都是on

可以截图一下推送表嘛, 你那一行圈一下 我用了几天好像没发现有问题

目前遇到了新的错误 image 其他的还在验证

mengluo04 commented 2 months ago

我这边无法复现,是否可以提供 [DEBUG] plugins.GenshinUID.GenshinUID.genshinuid_resin | {'NoneBot2': {...}}中的值

这两天正常了,但是发现了其他的问题,体力,洞天宝钱推送了一次之后推送状态变成on,后面就不会再推送了,开了催命模式也没用,就算请了体力也不会推送,推送状态不会变。还有强制推送也会受推送状态的影响,不确定受不受设置的阈值的影响

理论上等下次检查推送的时候, 如果体力低于阈值, 该状态就会变为off的才对, 然后如果开了催命模式就不受该值影响了, 你是否开完之后没有重启core呢

确认过了,开了催命模式,也重启了,宝钱2400/2400,体力超过设定阈值没推送,推送管理页面的状态也都是on

可以截图一下推送表嘛, 你那一行圈一下 我用了几天好像没发现有问题

目前遇到了新的错误 image 其他的还在验证

修改状态正常了