mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
update to hoyolab 2.38.1
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using Snap.Hutao.Core.Logging;
|
using Snap.Hutao.Core.Logging;
|
||||||
using Snap.Hutao.Extension;
|
using Snap.Hutao.Core.Threading;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ internal static class CoreEnvironment
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 动态密钥1的盐
|
/// 动态密钥1的盐
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string DynamicSecret1Salt = "Qqx8cyv7kuyD8fTw11SmvXSFHp7iZD29";
|
public const string DynamicSecret1Salt = "yUZ3s0Sna1IrSNfk29Vo6vRapdOyqyhB";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 动态密钥2的盐
|
/// 动态密钥2的盐
|
||||||
@@ -32,7 +32,7 @@ internal static class CoreEnvironment
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 米游社 Rpc 版本
|
/// 米游社 Rpc 版本
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string HoyolabXrpcVersion = "2.37.1";
|
public const string HoyolabXrpcVersion = "2.38.1";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 标准UA
|
/// 标准UA
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
using Microsoft.Windows.AppLifecycle;
|
using Microsoft.Windows.AppLifecycle;
|
||||||
using Snap.Hutao.Core.Threading;
|
using Snap.Hutao.Core.Threading;
|
||||||
using Snap.Hutao.Extension;
|
|
||||||
using Snap.Hutao.Service.Abstraction;
|
using Snap.Hutao.Service.Abstraction;
|
||||||
using Snap.Hutao.Service.Navigation;
|
using Snap.Hutao.Service.Navigation;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Copyright (c) DGP Studio. All rights reserved.
|
// Copyright (c) DGP Studio. All rights reserved.
|
||||||
// Licensed under the MIT license.
|
// Licensed under the MIT license.
|
||||||
|
|
||||||
namespace Snap.Hutao.Extension;
|
namespace Snap.Hutao.Core.Threading;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 信号量扩展
|
/// 信号量扩展
|
||||||
@@ -15,7 +15,7 @@ public static class SemaphoreSlimExtensions
|
|||||||
/// <returns>可释放的对象,用于释放信号量</returns>
|
/// <returns>可释放的对象,用于释放信号量</returns>
|
||||||
public static async Task<IDisposable> EnterAsync(this SemaphoreSlim semaphoreSlim)
|
public static async Task<IDisposable> EnterAsync(this SemaphoreSlim semaphoreSlim)
|
||||||
{
|
{
|
||||||
await semaphoreSlim.WaitAsync();
|
await semaphoreSlim.WaitAsync().ConfigureAwait(false);
|
||||||
return new SemaphoreSlimReleaser(semaphoreSlim);
|
return new SemaphoreSlimReleaser(semaphoreSlim);
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user