修复自动更新功能并优化Gitee镜像配置
- 修复版本号点击无弹窗问题,添加友好的错误提示 - 更新Gitee镜像配置,使用正确的用户名 ochenoktochen/XMBOX - 优化更新检测逻辑,支持智能镜像选择和错误处理 - 增强用户体验,显示具体的更新失败原因 - 支持GitHub API限流时自动切换到Gitee镜像源
This commit is contained in:
@@ -17,9 +17,9 @@ public class Github {
|
||||
public static final String URL = "https://raw.githubusercontent.com/Tosencen/XMBOX/main";
|
||||
public static final String API_URL = "https://api.github.com/repos/Tosencen/XMBOX/releases/latest";
|
||||
|
||||
// 国内镜像地址 - 使用Gitee作为示例,实际应替换为您的镜像地址
|
||||
public static final String CN_URL = "https://gitee.com/tosencen/XMBOX/raw/main";
|
||||
public static final String CN_API_URL = "https://gitee.com/api/v5/repos/tosencen/XMBOX/releases/latest";
|
||||
// 国内镜像地址 - 使用Gitee作为镜像
|
||||
public static final String CN_URL = "https://gitee.com/ochenoktochen/XMBOX/raw/main";
|
||||
public static final String CN_API_URL = "https://gitee.com/api/v5/repos/ochenoktochen/XMBOX/releases/latest";
|
||||
|
||||
// 存储测速结果
|
||||
private static Boolean useCnMirror = null;
|
||||
|
||||
Reference in New Issue
Block a user