Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix leaves update #196

Closed
wants to merge 1 commit into from
Closed

Fix leaves update #196

wants to merge 1 commit into from

Conversation

Bluemangoo
Copy link
Member

fix #195

(顺手)

姐姐什么时候把api迁到 .org。

@LittleChest
Copy link
Member

姐姐什么时候把api迁到 .org。

已迁移

@@ -249,7 +249,7 @@ index 0000000000000000000000000000000000000000..e7060b91a27b1d0cddb14c155caaa0e7
+
+ private static LeavesBuildInfo getLatestBuildInfo(String mcVersion, String gitHash) {
+ try {
+ HttpURLConnection connection = (HttpURLConnection) new URL("https://api.leavesmc.top/projects/leaves/versions/" + mcVersion + "/builds/latest").openConnection();
+ HttpURLConnection connection = (HttpURLConnection) new URL("https://api.leavesmc.top/v2/projects/leaves/versions/" + mcVersion + "/builds/latest").openConnection();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用新域名 leavesmc.org

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

新域名和旧的表现好像有一点区别(

我把所有的域名都改过来好了。

@Bluemangoo Bluemangoo closed this Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

自动更新趋势了
2 participants