mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix #1333 again
This commit is contained in:
@@ -95,7 +95,7 @@ internal sealed class DownloadSummary : ObservableObject
|
||||
logger.LogError(ex, "Download Static Zip failed");
|
||||
await taskContext.SwitchToMainThreadAsync();
|
||||
Description = ex is HttpRequestException httpRequestException
|
||||
? $"{SH.ViewModelWelcomeDownloadSummaryException} - HTTP {httpRequestException.StatusCode:D}"
|
||||
? $"{SH.ViewModelWelcomeDownloadSummaryException} - HTTP {httpRequestException.HttpRequestError} {httpRequestException.StatusCode:D}"
|
||||
: ex.Message;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
namespace Snap.Hutao.Web.Hoyolab;
|
||||
|
||||
[JsonConverter(typeof(RegionConverter))]
|
||||
internal readonly partial struct Region
|
||||
internal readonly struct Region
|
||||
{
|
||||
public static readonly Region CNGF01 = new("cn_gf01");
|
||||
public static readonly Region CNQD01 = new("cn_qd01");
|
||||
|
||||
@@ -19,4 +19,4 @@ internal sealed class RegionConverter : JsonConverter<Region>
|
||||
{
|
||||
writer.WriteStringValue(value.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user