From 4a54751e4cec53d19efd30f18dd2434ebc80ee78 Mon Sep 17 00:00:00 2001 From: MistEO Date: Tue, 7 Dec 2021 18:00:31 +0800 Subject: [PATCH] =?UTF-8?q?fix.=E4=BF=AE=E5=A4=8D=E7=83=AD=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E8=B5=84=E6=BA=90=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MeoAssistance/Version.h | 2 +- src/MeoAsstGui/ViewModels/VersionUpdateViewModel.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/MeoAssistance/Version.h b/src/MeoAssistance/Version.h index 9a66aa48db..fb7e7e6910 100644 --- a/src/MeoAssistance/Version.h +++ b/src/MeoAssistance/Version.h @@ -2,5 +2,5 @@ namespace asst { - constexpr static const char* Version = "v2.2.2"; + constexpr static const char* Version = "v2.2.3"; } diff --git a/src/MeoAsstGui/ViewModels/VersionUpdateViewModel.cs b/src/MeoAsstGui/ViewModels/VersionUpdateViewModel.cs index 2164e898d2..72bf145b9c 100644 --- a/src/MeoAsstGui/ViewModels/VersionUpdateViewModel.cs +++ b/src/MeoAsstGui/ViewModels/VersionUpdateViewModel.cs @@ -348,7 +348,7 @@ namespace MeoAsstGui public bool ResourceOTA() { const string req_base_url = "https://api.github.com/repos/MistEO/MeoAssistance-Arknights/commits?path="; - const string down_base_url = "https://cdn.jsdelivr.net/gh/MistEO/MeoAssistance-Arknights@master/"; + const string down_base_url = "https://cdn.jsdelivr.net/gh/MistEO/MeoAssistance-Arknights@"; var update_dict = new Dictionary() { { "3rdparty/resource/penguin-stats-recognize/json/stages.json" , "resource/penguin-stats-recognize/json/stages.json"}, @@ -382,7 +382,8 @@ namespace MeoAsstGui } string tempname = filename + ".tmp"; - if (!DownloadFile(down_base_url + url, tempname)) + string download_url = down_base_url + cloud_sha + "/" + url; + if (!DownloadFile(download_url, tempname)) { continue; }