MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    更新到最新版之后启动Mirai无法自动登录QQ号了

    使用交流
    3
    7
    620
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • EdgeStar2020
      EdgeStar2020 最后由 编辑

      更新之前启动mirai都是可以正常自动登录QQ的,但现在需要手动输入“/login xxx xxx”指令才能登录QQ了,是新版有什么变化吗,但我在更新日志里面没有看到有登录QQ相关的修改啊

      以下为最新版Mirai自动登录QQ时的报错日志:

      2022-08-30 10:21:41 I/WindowHelperJvm: Mirai 正在使用桌面环境. 如遇到验证码将会弹出对话框.
       可添加 JVM 属性 `mirai.no-desktop` 以关闭.
      2022-08-30 10:21:41 I/WindowHelperJvm: Mirai is using desktop. Captcha will be thrown by w
      indow popup. You can add `mirai.no-desktop` to JVM properties (-Dmirai.no-desktop) to disa
      ble it.
      2022-08-30 10:21:41 I/main: Auto-login 123456789
      2022-08-30 10:21:41 W/stderr: ERROR StatusLogger Log4j2 could not find a logging implement
      ation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
      
      2022-08-30 10:21:42 I/Bot.123456789: Loaded account secrets from local cache.
      2022-08-30 10:21:42 I/Bot.123456789: Saved account secrets to local cache for fast login.
      
      2022-08-30 10:21:52 I/Bot.123456789: Bot cancelled: Bot closed
      2022-08-30 10:21:52 E/main: kotlinx.coroutines.TimeoutCancellationException: Timed out wai
      ting for 5000 ms
      kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms
              at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:184)
              at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:154)
              at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.k
      t:502)
              at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:279)
              at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:108)
              at java.base/java.lang.Thread.run(Unknown Source)
      
      2022-08-30 10:21:52 I/main: mirai-console started successfully.
      
      1 条回复 最后回复 回复 引用 0
      • L
        linyuanchu 最后由 编辑

        配置文件是不是重置了

        EdgeStar2020 1 条回复 最后回复 回复 引用 0
        • EdgeStar2020
          EdgeStar2020 @linyuanchu 最后由 编辑

          @linyuanchu 没有,配置文件还是原来的,没有变化

          1 条回复 最后回复 回复 引用 0
          • cssxsh
            cssxsh 最后由 编辑

            2022-08-30 10:21:41 I/main: Auto-login 123456789

            ?

            EdgeStar2020 1 条回复 最后回复 回复 引用 0
            • EdgeStar2020
              EdgeStar2020 @cssxsh 最后由 EdgeStar2020 编辑

              @cssxsh 12345678是随便改的QQ,不代表真正的QQ

              AutoLogin.yml文件里面的账号配置为

              configuration: 
              protocol: MACOS
              device: device.json
              enable: true
              heartbeatStrategy: STAT_HB
              

              一直没有修改过
              我能够想到的会影响自动登录的应该就这几个配置项了,账号密码也是没有问题的,之前都是可以正常登录的

              cssxsh 1 条回复 最后回复 回复 引用 0
              • cssxsh
                cssxsh @EdgeStar2020 最后由 编辑

                @EdgeStar2020
                MACOS 协议最近不能用了

                https://github.com/mamoe/mirai/issues/2215

                Longtianmu created this issue in mamoe/mirai

                closed Mirai/JVM 2.12.1下 MACOS协议登陆失败 #2215

                EdgeStar2020 1 条回复 最后回复 回复 引用 0
                • EdgeStar2020
                  EdgeStar2020 @cssxsh 最后由 EdgeStar2020 编辑

                  @cssxsh 测试了一下,确实是用了MACOS协议之后就会无法自动登录(不过手动用指令登录倒是可以),其他协议可以正常自动登录。
                  感谢大佬指点

                  1 条回复 最后回复 回复 引用 0
                  • 1 / 1
                  • First post
                    Last post
                  Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact