Skip to content

Commit

Permalink
0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxue1272 committed Jul 24, 2023
1 parent a6c2b98 commit 1c6235b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Expand Up @@ -51,3 +51,6 @@ other:
若有使用需要 可到Console输入 /help 查看更多信息,在此不进行介绍
todo:
1.目前awt和skiko的切换仅仅是可用状态,关于更多内部细节的抽象和引用依赖并未很好的优化,后续应该会进行不小的改动

v0.6.1
1.修复了在某些情况下用户无法登录的问题
2 changes: 1 addition & 1 deletion build.gradle.kts
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "io.tiangou.valobot"
version = "0.6.0"
version = "0.6.1"

val kotlinVersion = "1.8.20"
val ktorVersion = "2.2.4"
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/io/tiangou/ValorantBotPlugin.kt
Expand Up @@ -17,7 +17,7 @@ object ValorantBotPlugin : KotlinPlugin(
description = JvmPluginDescription(
id = "io.tiangou.valorant-bot-plugin",
name = "valorant-bot-plugin",
version = "0.6.0"
version = "0.6.1"
)
{
author("xiaoxue1272")
Expand Down
16 changes: 6 additions & 10 deletions src/main/kotlin/io/tiangou/logic/LogicProcessExtension.kt
Expand Up @@ -44,16 +44,12 @@ val ASK_LOCATION_AREA_MESSAGE by lazy {


internal suspend fun UserCache.loginSuccessfulHandle(event: MessageEvent, authUrl: String) {
synchronized(this) {
StoreApiHelper.clean(this)
ImageHelper.clean(this)
riotClientData.flushAccessToken(authUrl)
runBlocking {
riotClientData.flushXRiotEntitlementsJwt(RiotApi.EntitlementsAuth.execute().entitlementsToken)
riotClientData.puuid = RiotApi.PlayerInfo.execute().sub
}
isRiotAccountLogin = true
}
StoreApiHelper.clean(this)
ImageHelper.clean(this)
riotClientData.flushAccessToken(authUrl)
riotClientData.flushXRiotEntitlementsJwt(RiotApi.EntitlementsAuth.execute().entitlementsToken)
riotClientData.puuid = RiotApi.PlayerInfo.execute().sub
isRiotAccountLogin = true
event.reply("登录成功")
}

Expand Down

0 comments on commit 1c6235b

Please sign in to comment.