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

使用时间长了之后会重新跳出验证码 #328

Closed
tobycroft opened this issue May 21, 2020 · 11 comments · Fixed by #1128 or #1154
Closed

使用时间长了之后会重新跳出验证码 #328

tobycroft opened this issue May 21, 2020 · 11 comments · Fixed by #1128 or #1154
Labels
t:problem 类型: 不容易归类为特性或 bug 的综合问题 x:protocol 属性: 协议相关

Comments

@tobycroft
Copy link

RT,有一段时间没有操作后,界面上就会跳验证码要求验证,这是mirai的内部机制还是qq的机制啊
如果要保持动作,应该保持什么动作比较好呢,ping还是给自己发送消息呢

@tobycroft tobycroft added the x:question 标签: 需要更多信息 label May 21, 2020
@ryoii
Copy link
Member

ryoii commented May 21, 2020

未明确的原因导致QQ掉线,现在是通过快速自动重连保证运行,但本质是也是也是登录,所以有验证码。保持消息发送可以避免掉线。建议qq稳定使用一个硬件信息和网络环境,当登录不需要验证码的时候,就不会有这个问题了。

——————————
若问题已解决,请关闭issue
若尚有疑问,可继续回复

@Him188
Copy link
Member

Him188 commented May 21, 2020

解决方法为 #119 ,但这不是高优先级,没有人愿意再去碰登录协议。

另外,使用 mirai 作为依赖时需要参照demo使用 fileBasedDeviceInfo(),否则mirai将一直使用随机设备信息。

@Him188 Him188 added the z:duplicate 状态: 重复 label May 21, 2020
@Him188 Him188 pinned this issue May 21, 2020
@tobycroft
Copy link
Author

如何免密登录啊,登录我发现只能使用login方法啊,如果login + qq号码 不带密码,mirai-console就炸了

@tobycroft
Copy link
Author

fileBasedDeviceInfo可以在配置文件里面写死吗? @Him188

@Him188
Copy link
Member

Him188 commented May 21, 2020

fileBasedDeviceInfo可以在配置文件里面写死吗? @Him188

可以

@tobycroft
Copy link
Author

Emm我想知道在哪里可以找到Demo呢

@Him188
Copy link
Member

Him188 commented May 21, 2020

今天会发出 1.0.0, 默认开启 fileBasedDeviceInfo

@tobycroft
Copy link
Author

@Him188 我想问下是昨天发release吗……可以通过warp直接升级吗

@Him188
Copy link
Member

Him188 commented May 22, 2020

使用1.0.0,并在构造bot时指定:

val bot =Bot(...) {
    fileBasedDeviceInfo()
}

@Him188 Him188 closed this as completed May 22, 2020
@Him188 Him188 unpinned this issue May 22, 2020
@Him188 Him188 reopened this Jun 17, 2020
@Him188 Him188 added t:problem 类型: 不容易归类为特性或 bug 的综合问题 x:protocol 属性: 协议相关 and removed z:duplicate 状态: 重复 x:question 标签: 需要更多信息 labels Jun 17, 2020
@tobycroft
Copy link
Author

是因为没有断联导致验证码的吗? @Him188

@Him188
Copy link
Member

Him188 commented Jun 19, 2020

是因为没有断联导致验证码的吗? @Him188

目前原因未知

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:problem 类型: 不容易归类为特性或 bug 的综合问题 x:protocol 属性: 协议相关
Projects
None yet
3 participants