We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d49b382 commit 52358cdCopy full SHA for 52358cd
1 file changed
src/main/java/com/xwintop/xJavaFxTool/utils/VersionChecker.java
@@ -1,5 +1,6 @@
1
package com.xwintop.xJavaFxTool.utils;
2
3
+import cn.hutool.http.HttpRequest;
4
import cn.hutool.http.HttpUtil;
5
import com.alibaba.fastjson.JSON;
6
import com.alibaba.fastjson.JSONObject;
@@ -18,7 +19,8 @@
18
19
public class VersionChecker {
20
public static void checkNewVersion() {
21
try {
- String json = HttpUtil.get("https://gitee.com/api/v5/repos/xwintop/xJavaFxTool/releases/latest");
22
+ String json = HttpUtil.get("https://gitee.com/api/v5/repos/xwintop/xJavaFxTool/releases/latest?access_token=d0486279db39a5996eca48c620abeee1");
23
+ log.info("检查新版本:" + json);
24
JSONObject node = JSON.parseObject(json);
25
final String latestVersion = node.getString("tag_name");
26
final String features = node.getString("body");
0 commit comments