diff --git a/CHANGELOG.md b/CHANGELOG.md index 307a6416..67897699 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/ ### Fixed - 修复话题排序问题 +- 暂时修复无法检查更新的问题 ## [0.9.4] - 2023-02-05 diff --git a/lib/core/repository/version_repository.dart b/lib/core/repository/version_repository.dart index 68e49533..56f27a31 100644 --- a/lib/core/repository/version_repository.dart +++ b/lib/core/repository/version_repository.dart @@ -47,7 +47,7 @@ class VersionRepository { /// 更新文件的下载地址 Future updateUrl() async { - return 'https://ghproxy.com/https://github.com/he0119/smart-home-flutter/releases/download/v${await onlineVersion}/${await filename}'; + return 'https://github.com/he0119/smart-home-flutter/releases/download/v${await onlineVersion}/${await filename}'; } /// 当前版本 @@ -79,8 +79,7 @@ class VersionRepository { Future _getOnlineVersion() async { final versionRegex = RegExp( r'releases/tag/v([\d.]+)(-([0-9A-Za-z\-.]+))?(\+([0-9A-Za-z\-.]+))?'); - const url = - 'https://ghproxy.com/https://github.com/he0119/smart-home-flutter/releases/latest'; + const url = 'https://github.com/he0119/smart-home-flutter/releases/latest'; try { final response = await http.get(Uri.parse(url)); _fileExist = response.body.contains(await filename);