y1ndan / genshinhelper2

A Python library for miHoYo bbs and HoYoLAB Community. genshin 原神签到小助手 树脂提醒 微博超话 米游社米游币 崩坏3
https://www.yindan.me
GNU General Public License v3.0
521 stars 243 forks source link

米游社签到报错 #14

Closed Cute-angel closed 2 years ago

Cute-angel commented 2 years ago

2022-01-09 09:33:40 ERROR TRACEBACK Traceback (most recent call last): File "/app/./genshincheckinhelper/main.py", line 245, in run_task raw_result = func(cookie) File "/app/./genshincheckinhelper/main.py", line 90, in task2 r = t.sign() File "/usr/local/lib/python3.10/site-packages/genshinhelper/core.py", line 114, in sign user_data = self.user_data File "/usr/local/lib/python3.10/site-packages/genshinhelper/core.py", line 103, in user_data current_reward = self.current_reward File "/usr/local/lib/python3.10/site-packages/genshinhelper/core.py", line 84, in current_reward return [ File "/usr/local/lib/python3.10/site-packages/genshinhelper/core.py", line 85, in self.get_current_reward(i['total_sign_day'], i['is_sign']) KeyError: 'total_sign_day' 2022-01-09 09:33:40 INFO RESULT: 🏆 原神签到福利 ☁️ ✔ 0 · ✖ 1 🌈 No.1: 'total_sign_day'

2022-01-09 09:33:40 INFO Preparing to send notification ... 2022-01-09 09:33:43 INFO End of process run

Cute-angel commented 2 years ago

解决了,之前的cookie没有account_id和cookie_token重新登陆就有了