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

更新最新版后 /任务 报错 #391

Open
beiji-O-o opened this issue Jan 1, 2025 · 1 comment
Open

更新最新版后 /任务 报错 #391

beiji-O-o opened this issue Jan 1, 2025 · 1 comment
Labels
mihoyo API Issues about mihoyo API

Comments

@beiji-O-o
Copy link

beiji-O-o commented Jan 1, 2025

01-01 23:01:28 [SUCCESS] nonebot | OneBot V11 2200673035 | [message.private.friend]: Message 41940483 from 2081991324 '/任务'
01-01 23:01:28 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.command.plan, lineno=92)
01-01 23:01:29 [ERROR] nonebot_plugin_mystool | 米游币任务 - 讨论区签到: 用户 390548223(☎️0416) 需要完成人机验证
01-01 23:01:30 [STDOUT] nonebot_plugin_gocqhttp | [66666666] 
01-01 23:01:32 [ERROR] nonebot_plugin_mystool | 获取人机验证validate失败
Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot/__init__.py", line 335, in run
    get_driver().run(*args, **kwargs)
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 186, in run
    uvicorn.run(
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/uvicorn/main.py", line 578, in run
    server.run()
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot/message.py", line 476, in check_and_run_matcher
    await _run_matcher(
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot/message.py", line 428, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 850, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 825, in simple_run
    await handler(
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot/dependencies/__init__.py", line 94, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot_plugin_mystool/command/plan.py", line 146, in _
    await perform_bbs_sign(bot=bot, user=user, user_ids=[user_id], matcher=matcher, event=event,
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot_plugin_mystool/command/plan.py", line 451, in perform_bbs_sign
    sign_status, sign_points = await mission_obj.sign(user)
  File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot_plugin_mystool/api/myb_missions_api.py", line 159, in sign
    if geetest_result := await get_validate(user, mmt_data.gt, mmt_data.challenge):
> File "/home/lighthouse/mihoyo/.venv/lib/python3.10/site-packages/nonebot_plugin_mystool/utils/common.py", line 273, in get_validate
    validate = geetest_data['data']['validate']
KeyError: 'data'
01-01 23:01:35 [STDOUT] nonebot_plugin_gocqhttp | [66666666] 
@beiji-O-o
Copy link
Author

用的是rrocr,
"geetest_url": "http://api.rrocr.com/api/recognize.html",
"geetest_params": {
"appkey": "XXXXXXXXXXXXXXXXXXXXXX",
"referer": "https://act.mihoyo.com/"
},
"geetest_json":{
"gt": "{gt}",
"challenge": "{challenge}"
},

@Ljzd-PRO Ljzd-PRO added the mihoyo API Issues about mihoyo API label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mihoyo API Issues about mihoyo API
Projects
None yet
Development

No branches or pull requests

2 participants