Closed jinkaz closed 1 year ago
我记得 v2.13.0-RC2
需要修改登录协议为 IPAD
或者 ANDROID_PAD
并配置设备信息类型,参考 https://github.com/orgs/simple-robot/discussions/24
我记得
v2.13.0-RC2
需要修改登录协议为IPAD
或者ANDROID_PAD
并配置设备信息类型,参考 https://github.com/orgs/simple-robot/discussions/24
两个qq号,两个协议都试过了依然是同样的报错。参考其他帖子的办法,比如device.json每次启动都删除,也保持机器人账号手机登录。都不行。。。。
提供一下你的bot配置文件和pom文件内容
设备信息配置有没有调整为 file_based
类型
bot配置内容: { "component": "simbot.mirai", "code": 123, "password": "xxx", "protocol": "ANDROID_PAD", "config": { "deviceInfo": { "type": "file_based", "file": "device.json", "fromResource": null } } }
提供一下你的bot配置文件和pom文件内容
pom 内容: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.5</version>
</parent>
<groupId>com.example</groupId>
<artifactId>simbottest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>simbottest</name>
<description>simbottest</description>
<properties>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>com.github.jedis-lock</groupId>
<artifactId>jedis-lock</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>wx-java-mp-spring-boot-starter</artifactId>
<version>4.4.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.83</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.3</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>3.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- simbot Spring Boot Starter -->
<dependency>
<groupId>love.forte.simbot.boot</groupId>
<artifactId>simboot-core-spring-boot-starter</artifactId>
<version>3.0.0-M2</version>
</dependency>
<!-- mirai组件 -->
<dependency>
<groupId>love.forte.simbot.component</groupId>
<artifactId>simbot-component-mirai-boot</artifactId>
<version>3.0.0.0-beta.4</version>
<exclusions>
<exclusion>
<groupId>net.mamoe</groupId>
<artifactId>mirai-core-jvm</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.mamoe</groupId>
<artifactId>mirai-core-jvm</artifactId>
<version>2.13.0-RC2</version>
<exclusions>
<exclusion>
<artifactId>kotlinx-serialization-core-jvm</artifactId>
<groupId>org.jetbrains.kotlinx</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<addResources>true</addResources>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
协议配置 protocol
应该在 config
里
协议配置
protocol
应该在config
里
这么设置居然登录成功了!!!万分感谢!!!!
版本号
3.0.0-M2
附加版本
simboot-core-spring-boot-starter:3.0.0-M2 simbot-component-mirai-boot:3.0.0.0-beta.4 mirai-core-jvm:2.13.0-RC2
问题描述
最近机器人启动提示当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面。最近一直关注issue的记录。目前已经升级到最新版本。按照mirai的版本3.13.0 能解决这个问题,但是启动会出现okhttp缺失类。又看到提交记录是在版本2.13.0-RC2已经修复这个问题,所以手动引入了mirai-core-jvm。但是再次启动仍旧提示QQ版本过低的报错。。。想请问还是等待版本修复吗?以下是我的springboot工程引入的依赖:
补充:kotlinx-serialization-core-jvm 去掉依赖是因为启动会报类冲突,我这里这么处理就能启动今儿进行图形验证码链接后续的操作。
复现方式
服务启动即可出现。用两个qq好都试过了。
相关日志
其他补充
No response