Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Commit d5df066

Browse files
author
Awbugl
committed
Update Code
1 parent ccdee64 commit d5df066

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Andreal.Core/Data/Api/ArcaeaUnlimitedApi.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ public static class ArcaeaUnlimitedApi
1313
public static void Init(AndrealConfig config)
1414
{
1515
_client = new();
16-
_client.BaseAddress = new(config.Api["unlimited"].Url);
17-
_client.DefaultRequestHeaders.Add("User-Agent", config.Api["unlimited"].Token);
16+
var apiConfig = config.Api["unlimited"];
17+
_client.BaseAddress = new(apiConfig.Url);
18+
_client.DefaultRequestHeaders.Add("User-Agent", apiConfig.Token);
19+
_client.DefaultRequestHeaders.Authorization = new("Bearer", apiConfig.Token);
1820
}
1921

2022
private static async Task<ResponseRoot?> GetString(string url) =>

UpdateLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2+
### 2022.8.20 v0.4.6
3+
4+
- 提前适配AUA 新版token验证方案。
5+
16
### 2022.8.11 v0.4.5
27

38
- 由于上游数据来源之一(sekai.best)可用性较低,移除了Pjsk模块。

0 commit comments

Comments
 (0)