Skip to content

Commit

Permalink
build: 1.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Dec 25, 2021
1 parent 0d5a169 commit 6f0a3c3
Show file tree
Hide file tree
Showing 4 changed files with 5 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,11 +3,11 @@ plugins {
kotlin("plugin.serialization") version Versions.kotlin

id("net.mamoe.mirai-console") version Versions.mirai
id("net.mamoe.maven-central-publish") version "0.7.0"
id("net.mamoe.maven-central-publish") version "0.7.1"
}

group = "xyz.cssxsh"
version = "1.3.6"
version = "1.3.7"

mavenCentralPublish {
useCentralS01()
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/xyz/cssxsh/arknights/market/Face.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")

package xyz.cssxsh.arknights.market

import io.ktor.http.*
Expand Down Expand Up @@ -275,6 +273,7 @@ interface ArknightsFace {
/**
* 构建 MarketFace 实例
*/
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
fun ArknightsFace.impl(): MarketFace {
return MarketFaceImpl(
delegate = ImMsgBody.MarketFace(
Expand All @@ -295,6 +294,7 @@ fun ArknightsFace.impl(): MarketFace {
)
}

@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
val MarketFace.md5 by ReadOnlyProperty { face, _ ->
require(face is MarketFaceImpl) { "需要MarketFaceImpl实例作为参数" }
face.delegate.faceId.toByteString().hex()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import xyz.cssxsh.arknights.*
import xyz.cssxsh.mirai.plugin.command.*

object ArknightsHelperPlugin : KotlinPlugin(
JvmPluginDescription("xyz.cssxsh.mirai.plugin.arknights-helper", "1.3.6") {
JvmPluginDescription("xyz.cssxsh.mirai.plugin.arknights-helper", "1.3.7") {
name("arknights-helper")
author("cssxsh")
}
Expand Down
3 changes: 0 additions & 3 deletions src/main/kotlin/xyz/cssxsh/mirai/plugin/ArknightsTools.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ fun findContact(delegate: Long): Contact? {
for (stranger in bot.strangers) {
if (stranger.id == delegate) return stranger
}
for (friend in bot.friends) {
if (friend.id == delegate) return friend
}
for (group in bot.groups) {
for (member in group.members) {
if (member.id == delegate) return member
Expand Down

0 comments on commit 6f0a3c3

Please sign in to comment.