mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
fix: mirror-chyan notify error
This commit is contained in:
@@ -516,6 +516,7 @@ namespace MaaWpfGui.Models
|
||||
|
||||
if (data is null)
|
||||
{
|
||||
ToastNotification.ShowDirect(LocalizationHelper.GetString("GameResourceFailed"));
|
||||
return (false, null);
|
||||
}
|
||||
|
||||
@@ -525,9 +526,15 @@ namespace MaaWpfGui.Models
|
||||
return (false, null);
|
||||
}
|
||||
|
||||
if (DateTime.TryParse(data["data"]?["version_name"]?.ToString(), out var version) &&
|
||||
DateTime.Compare(currentVersionDateTime, version) <= 0)
|
||||
if (!DateTime.TryParse(data["data"]?["version_name"]?.ToString(), out var version))
|
||||
{
|
||||
ToastNotification.ShowDirect(LocalizationHelper.GetString("GameResourceFailed"));
|
||||
return (false, null);
|
||||
}
|
||||
|
||||
if (DateTime.Compare(currentVersionDateTime, version) >= 0)
|
||||
{
|
||||
ToastNotification.ShowDirect(LocalizationHelper.GetString("AlreadyLatest"));
|
||||
return (false, null);
|
||||
}
|
||||
|
||||
|
||||
@@ -245,7 +245,7 @@
|
||||
<system:String x:Key="ResourceUpdate">资源更新</system:String>
|
||||
<system:String x:Key="ResourceUpdateSource">资源更新更新源</system:String>
|
||||
<system:String x:Key="MirrorChyan">Mirror 酱</system:String>
|
||||
<system:String x:Key="MirrorChyanResourceUpdateTip">Mirror 酱检查到资源版本更新,可前往「设置-软件更新」配置CDK或使用 github 源进行资源版本更新</system:String>
|
||||
<system:String x:Key="MirrorChyanResourceUpdateTip">Mirror 酱检查到资源版本更新,可前往「设置-软件更新」配置 CDK 或使用 github 源进行资源版本更新</system:String>
|
||||
<system:String x:Key="NewVersionFoundTitle">检测到新版本</system:String>
|
||||
<system:String x:Key="NewVersionFoundDescDownloading">正在后台下载……</system:String>
|
||||
<system:String x:Key="NewVersionFoundDescId" xml:space="preserve">版本号: </system:String>
|
||||
|
||||
@@ -242,7 +242,7 @@
|
||||
<system:String x:Key="ResourceUpdate">資源更新</system:String>
|
||||
<system:String x:Key="ResourceUpdateSource">資源更新來源</system:String>
|
||||
<system:String x:Key="MirrorChyan">Mirror 醬</system:String>
|
||||
<system:String x:Key="MirrorChyanResourceUpdateTip">Mirror 醬檢查到資源版本更新,可前往「設定-軟體更新」配置CDK或使用 github 源進行資源版本更新</system:String>
|
||||
<system:String x:Key="MirrorChyanResourceUpdateTip">Mirror 醬檢查到資源版本更新,可前往「設定-軟體更新」配置 CDK 或使用 github 源進行資源版本更新</system:String>
|
||||
<system:String x:Key="NewVersionFoundTitle">檢測到新版本</system:String>
|
||||
<system:String x:Key="NewVersionFoundDescDownloading">正在後臺下載……</system:String>
|
||||
<system:String x:Key="NewVersionFoundDescId" xml:space="preserve">版本號: </system:String>
|
||||
|
||||
Reference in New Issue
Block a user