From 594bdf15b6dfc87599c85599946840b624bc54ec Mon Sep 17 00:00:00 2001 From: MiniDay <372403923@qq.com> Date: Wed, 30 Jul 2025 20:41:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0=E6=97=B6=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=20URL=20=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- build.gradle.kts | 2 +- .../mc/plugin/core/common/util/UpdateCheckUtils.java | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 241214e..9eafa41 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ repositories { dependencies { // 对于 Bukkit 插件 - compileOnly("cn.hamster3.mc.plugin:core-bukkit:1.4.1") + compileOnly("cn.hamster3.mc.plugin:core-bukkit:1.4.2") // 对于 BungeeCord 插件 - compileOnly("cn.hamster3.mc.plugin:core-bungee:1.4.1") + compileOnly("cn.hamster3.mc.plugin:core-bungee:1.4.2") } ``` @@ -52,13 +52,13 @@ dependencies { cn.hamster3.mc.plugin core-bukkit - 1.4.1 + 1.4.2 cn.hamster3.mc.plugin core-bungee - 1.4.1 + 1.4.2 diff --git a/build.gradle.kts b/build.gradle.kts index ea2d070..0b996cb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "cn.hamster3.mc.plugin" -version = "1.4.1" +version = "1.4.2" description = "叁只仓鼠的 Minecraft 插件开发通用工具包" subprojects { diff --git a/core-common/src/main/java/cn/hamster3/mc/plugin/core/common/util/UpdateCheckUtils.java b/core-common/src/main/java/cn/hamster3/mc/plugin/core/common/util/UpdateCheckUtils.java index 34a9af1..567a5ba 100644 --- a/core-common/src/main/java/cn/hamster3/mc/plugin/core/common/util/UpdateCheckUtils.java +++ b/core-common/src/main/java/cn/hamster3/mc/plugin/core/common/util/UpdateCheckUtils.java @@ -47,7 +47,7 @@ public final class UpdateCheckUtils { case "GITEA_RELEASES": { lastRelease = getGiteaLastRelease(baseUrl, gitRepo, gitToken); if (downloadUrl == null) { - downloadUrl = URI.create(baseUrl).resolve(gitRepo).toString(); + downloadUrl = URI.create(baseUrl).resolve("/" + gitRepo).toString(); } break; } @@ -58,7 +58,7 @@ public final class UpdateCheckUtils { } lastRelease = getGitlabLastRelease(baseUrl, projectID, gitToken); if (downloadUrl == null) { - downloadUrl = URI.create(baseUrl).resolve(gitRepo).toString(); + downloadUrl = URI.create(baseUrl).resolve("/" + gitRepo).toString(); } break; }