From 7af937b5816c8c4c7e48d3f20e31ea0564a3a9f4 Mon Sep 17 00:00:00 2001 From: uy_sun Date: Tue, 5 Dec 2023 14:30:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(core):=20=E6=9A=82=E6=97=B6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=97=A0=E6=B3=95=E6=A3=80=E6=9F=A5=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + lib/core/repository/version_repository.dart | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) 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);