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

java的maven项目如何使用:mirai-login-solver-sakura #2863

Open
laoliucxy opened this issue Sep 14, 2024 · 3 comments
Open

java的maven项目如何使用:mirai-login-solver-sakura #2863

laoliucxy opened this issue Sep 14, 2024 · 3 comments

Comments

@laoliucxy
Copy link

问题描述

遇到滑块验证码的问题。如何使用mirai-login-solver-sakura.jar。我把这个jar包放在我本地的maven里不好使。在开发里面如何使用他处理滑块验证码?

复现

如何在java的maven项目里使用滑块验证码mirai-login-solver-sakura

mirai-core 版本

2.16.0

bot-protocol

ANDROID_PHONE

其他组件版本

No response

系统日志

No response

网络日志

No response

补充信息

No response

@MrXiaoM
Copy link
Contributor

MrXiaoM commented Sep 14, 2024

需要自行在 BotConfiguration 设置 loginSolver

@laoliucxy
Copy link
Author

大佬在帮忙看看。构造SakuraLoginSolver对象需要SakuraTransmitDaemon,如何构造SakuraTransmitDaemon对象呢?源码看不懂
public void test(){
Bot bot = BotFactory.INSTANCE.newBot(807480224, "123456@", configuration -> {
configuration.setLoginSolver(new SakuraLoginSolver(new SakuraTransmitDaemon()));
});
bot.login();
}

@tankilo
Copy link

tankilo commented Oct 28, 2024

请问有成功么,我也没有看懂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants