MiraiForum

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

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

    使用交流
    3
    7
    166
    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.
    • EdgeStar2020
      EdgeStar2020 last edited by

      更新之前启动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 Reply Last reply Reply Quote 0
      • L
        linyuanchu last edited by

        配置文件是不是重置了

        EdgeStar2020 1 Reply Last reply Reply Quote 0
        • EdgeStar2020
          EdgeStar2020 @linyuanchu last edited by

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

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

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

            ?

            EdgeStar2020 1 Reply Last reply Reply Quote 0
            • EdgeStar2020
              EdgeStar2020 @cssxsh last edited by EdgeStar2020

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

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

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

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

              cssxsh 1 Reply Last reply Reply Quote 0
              • cssxsh
                cssxsh @EdgeStar2020 last edited by

                @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 Reply Last reply Reply Quote 0
                • EdgeStar2020
                  EdgeStar2020 @cssxsh last edited by EdgeStar2020

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

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