
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
-引入`async-http-client`和`fix-protocol`依赖项以提升网络请求处理和协议兼容性。 - 在`BotConfiguration`中切换到`ANDROID_PAD`协议以改善性能。 - 在`DrinkWaterUser`实体中使用`TableId`注解并允许`botId`为`null`,以更好地与数据库交互。 - 在`ReminderService`和其他服务中使用`KtQueryWrapper`替代`LambdaQueryWrapper`,简化查询构建。 - 通过在`MiraiBotApplication`中预加载协议版本,加速启动时间。 - 更新`application-dev.yml`和`application-prod.yml`配置文件,引入密码认证。- 新增`android_pad.json`和`KFCFactory.json`配置,支持新协议。 这些更改提高了数据库操作的便捷性,增强了网络请求的处理能力,并通过协议优化改善了整体性能。
20 lines
712 B
Kotlin
20 lines
712 B
Kotlin
package info.alinadace.miraibot
|
|
|
|
import net.mamoe.mirai.utils.BotConfiguration
|
|
import org.mybatis.spring.annotation.MapperScan
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication
|
|
import org.springframework.boot.runApplication
|
|
import org.springframework.scheduling.annotation.EnableScheduling
|
|
import xyz.cssxsh.mirai.tool.FixProtocolVersion
|
|
|
|
@SpringBootApplication
|
|
@EnableScheduling
|
|
@MapperScan("info.alinadace.miraibot.service")
|
|
class MiraiBotApplication
|
|
|
|
fun main(args: Array<String>) {
|
|
// FixProtocolVersion.fetch(BotConfiguration.MiraiProtocol.ANDROID_PHONE, "8.9.96")
|
|
FixProtocolVersion.load(BotConfiguration.MiraiProtocol.ANDROID_PAD)
|
|
runApplication<MiraiBotApplication>(*args)
|
|
}
|