MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    怎么使用mirai-core 登录

    开发交流
    6
    7
    243
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • UrealToby
      UrealToby 摸鱼 last edited by

      如何使用mirai-core像这样登录:
      尝试登录然后如果需要验证获取验证码,然后传回验证码。文档里只说了bot.login()
      ,并没有说如何处理需要手机验证码的情况,看到了一个loginsolver但是没有任何实现,需要自己实现。

      1 Reply Last reply Reply Quote 0
      • UrealToby
        UrealToby 摸鱼 last edited by

        我看Mirai Android也没有任何实现

        1 Reply Last reply Reply Quote 0
        • 丿
          丿九七丨 last edited by

          同问

          1 Reply Last reply Reply Quote 0
          • Aye10032
            Aye10032 last edited by

            +1,旧版可以用滑动验证助手,新版只是说了自己实现,搞了下没研究明白

            wssy001 Nambers 2 Replies Last reply Reply Quote 0
            • wssy001
              wssy001 ⭐2021⭐ @Aye10032 last edited by

              @Aye10032
              我是mirai-core 2.13.2用户
              新版的话 登录问题看论坛的一个帖子,大致步骤是:
              mirai选Android Pad协议
              手机QQ保持登录
              然后mirai登录,触发手机验证码

              1 Reply Last reply Reply Quote 0
              • Nambers
                Nambers 摸鱼 @Aye10032 last edited by Nambers

                @Aye10032 实现loginSolver的话你可以看看我的: https://github.com/Nambers/MiraiCP/blob/main/kotlin/loader/src/nativeMain/kotlin/MiraiCPLoginSolver.kt , 然后登录的时候用 bot.login(CustomLoginSolver())
                基本上用控制台的输入输出就可以实现应该简单的, 差不多应该可以用我还没怎么测试过

                1 Reply Last reply Reply Quote 1
                • Him188
                  Him188 last edited by

                  阅读 core API 文档的机器人(Bots)章节,有个修改登录解决器。验证码处理是在这里的

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact