Fix UUID API

Update version to v1.1.0
This commit is contained in:
2024-02-22 09:17:07 +08:00
parent feb2d309e0
commit adef471210
4 changed files with 12 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ object JMinecraftSkin : KotlinPlugin(
JvmPluginDescription(
id = "top.jie65535.mirai-console-jms-plugin",
name = "J Minecraft Skin",
version = "1.0.0",
version = "1.1.0",
) {
author("jie65535")
info("MC皮肤查询插件")

View File

@@ -22,7 +22,7 @@ object MinecraftUuidService {
return uuid
}
val retJson = HttpUtil.get("https://tenapi.cn/mc/?uid=$username").decodeToString()
val retJson = HttpUtil.get("https://tenapi.cn/v2/mc/?uid=$username").decodeToString()
val response = Json.decodeFromString<JsonObject>(retJson)
if (response["code"]!!.jsonPrimitive.content == "200") {
val elem = response["id"]!!.jsonPrimitive