y1ndan / genshinhelper2

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

不知道cookie token有个v2正常吗,另外连接有问题,运行报错Login expired.Please log in again #77

Open LeSnran opened 1 year ago

xiaokang00010 commented 1 year ago

YuanShen对应的是国服 Genshin对应的是外服 理论上来说在国服签到失败应该是"登录失效,请重新登录" 你看看代码?

yq60523 commented 1 year ago

同,我也出现了这个问题

yihuanlin commented 1 year ago

对我用的tokenv2不行,logs如下:

2023-11-24 00:45:32 INFO You have 1 「HoYoLAB Community」 account configured.
2023-11-24 00:45:32 INFO Preparing to perform task for account 1...
2023-11-24 00:45:32 INFO Preparing to get check-in information ...
2023-11-24 00:45:55 INFO Preparing to get user game roles information ...
2023-11-24 00:45:58 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 83, in task1
    r = t.sign()
  File "/usr/local/lib/python3.10/site-packages/genshinhelper/core.py", line 115, 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 <listcomp>
    self.get_current_reward(i['total_sign_day'], i['is_sign'])

结果是

🏆 HoYoLAB Community
☁️ ✔ 0 · ✖ 1
🌈 No.1:
    'total_sign_day'

另外Discord Webhook好像也没自动通知