Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Colter23 committed Aug 27, 2023
1 parent 4b53379 commit 537fad6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ plugins {
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion

id("net.mamoe.mirai-console") version "2.14.0"
id("net.mamoe.mirai-console") version "2.15.0"
id("me.him188.maven-central-publish") version "1.0.0-dev-3"
}

group = "top.colter"
version = "3.2.10"
version = "3.2.11"

repositories {
mavenLocal()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object BiliBiliDynamic : KotlinPlugin(
JvmPluginDescription(
id = "top.colter.bilibili-dynamic-mirai-plugin",
name = "BiliBili Dynamic",
version = "3.2.10",
version = "3.2.11",
) {
author("Colter")
dependsOn("xyz.cssxsh.mirai.plugin.mirai-skia-plugin", ">= 1.1.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ object DynamicCommand : CompositeCommand(
}
} catch (e: NumberFormatException) {
sendMessage("ID错误 [$id]")
} catch (e: Exception) {
sendMessage("订阅失败 ${e.message}")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,13 @@ data class ModuleDynamic(
@SerialName("state")
val state: Int,
@SerialName("is_upower_active")
val active: Boolean,
val active: Boolean? = null,
@SerialName("desc")
val desc: Desc,
@SerialName("button")
val button: Button,
val button: Button? = null,
@SerialName("jump_url")
val jumpUrl: String,
val jumpUrl: String? = null,
)

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ object DynamicService {
if (!dynamic.containsKey(uid)) {
val m = followUser(uid)
if (m != null) return@withLock m
val u = client.userInfo(uid)
dynamic[uid] = SubData(u?.name!!)
val un = if (uid == 11783021L) {
"哔哩哔哩番剧出差"
} else client.userInfo(uid)?.name!!
dynamic[uid] = SubData(un)
}

//dynamic[uid]?.contacts?.apply {
Expand Down

0 comments on commit 537fad6

Please sign in to comment.