Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

bug: 加群请求事件问题 #284

Open
sckiyo opened this issue Mar 7, 2024 · 2 comments
Open

bug: 加群请求事件问题 #284

sckiyo opened this issue Mar 7, 2024 · 2 comments
Labels
bug Something isn't working v1.0.9 针对OneBot11标准的Shamrock

Comments

@sckiyo
Copy link

sckiyo commented Mar 7, 2024

警告: 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

  • 确保您使用的是 最新开发版本 的 Shamrock.
  • 确保您的问题尚未在 Issues 列表中提出.
  • 确保您的问题不是由于您的代码错误导致的.

描述 Bug

加群请求事件如果申请人没有填写验证信息会缺少comment字段

pydantic_core._pydantic_core.ValidationError: 1 validation error for GroupRequestEvent
comment
Field required [type=missing, input_value={'adapter': <alicebot.ada...}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing

复现 Bug

群聊的加群方式选择“需要发送验证消息”,申请人在验证消息框框里没有写任何内容

系统信息

  • Shamrock 版本: v1.0.9.r405.2ac0003-arm64
  • Android 版本: 12
  • LSPosed 框架版本: lspatch v0.6-398
  • 设备的制造商和型号:
  • 设备的 CPU 架构:
@sckiyo sckiyo added the bug Something isn't working label Mar 7, 2024
@Mythologyli
Copy link
Contributor

Mythologyli commented Mar 8, 2024

原因见 #234

修复这个要的改动比较多,我觉得还是开发人员来 commit 比较合适

我自用的版本目前是一个非常丑陋的解决方案,没有填写验证信息的话直接让 comment="无"

@sckiyo
Copy link
Author

sckiyo commented Mar 9, 2024

原因见 #234

修复这个要的改动比较多,我觉得还是开发人员来 commit 比较合适

我自用的版本目前是一个非常丑陋的解决方案,没有填写验证信息的话直接让 comment="无"

我也只需要随便弄个comment。好像改bot框架让它不报错还挺容易的,但也不是个长久的方案

@whitechi73 whitechi73 added the v1.0.9 针对OneBot11标准的Shamrock label Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working v1.0.9 针对OneBot11标准的Shamrock
Projects
None yet
Development

No branches or pull requests

3 participants