MiraiForum

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

    登陆API?

    HTTP API和第三方SDK
    3
    7
    561
    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.
    • CaptainYukinoshitaHachiman
      CaptainYukinoshitaHachiman last edited by

      请问Mirai生态有办法使用HTTP API来登陆新账号吗?

      1 Reply Last reply Reply Quote 0
      • wssy001
        wssy001 ⭐2021⭐ last edited by

        或许需要手动在mirai-core/mirai-console中定义一个登陆接口?如果你愿意这么做,我可以分享思路

        CaptainYukinoshitaHachiman 1 Reply Last reply Reply Quote 0
        • Samarium150
          Samarium150 童心未泯 last edited by

          你大概可以用mirai-api-http的执行命令来执行mirai-console的/login命令来实现登录

          CaptainYukinoshitaHachiman 2 Replies Last reply Reply Quote 0
          • CaptainYukinoshitaHachiman
            CaptainYukinoshitaHachiman @Samarium150 last edited by

            @Samarium150 谢谢

            1 Reply Last reply Reply Quote 0
            • CaptainYukinoshitaHachiman
              CaptainYukinoshitaHachiman @Samarium150 last edited by

              @Samarium150 我试了下,的确可以通过这个API来执行/login,但是如果需要滑动验证/设备锁的话并不会把相关信息返回,只会一直卡住,不知道有没有办法解决Orz

              Samarium150 1 Reply Last reply Reply Quote 0
              • CaptainYukinoshitaHachiman
                CaptainYukinoshitaHachiman @wssy001 last edited by

                @wssy001 是指自己写一个插件来提供相应API吗?

                1 Reply Last reply Reply Quote 0
                • Samarium150
                  Samarium150 童心未泯 @CaptainYukinoshitaHachiman last edited by

                  @CaptainYukinoshitaHachiman 这我就不太清楚了,建议是在console这边就解决滑动验证的问题。方法可以在论坛搜到

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