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

Commit

Permalink
Update Code
Browse files Browse the repository at this point in the history
  • Loading branch information
Awbugl committed Aug 20, 2022
1 parent ccdee64 commit d5df066
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Andreal.Core/Data/Api/ArcaeaUnlimitedApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ public static class ArcaeaUnlimitedApi
public static void Init(AndrealConfig config)
{
_client = new();
_client.BaseAddress = new(config.Api["unlimited"].Url);
_client.DefaultRequestHeaders.Add("User-Agent", config.Api["unlimited"].Token);
var apiConfig = config.Api["unlimited"];
_client.BaseAddress = new(apiConfig.Url);
_client.DefaultRequestHeaders.Add("User-Agent", apiConfig.Token);
_client.DefaultRequestHeaders.Authorization = new("Bearer", apiConfig.Token);
}

private static async Task<ResponseRoot?> GetString(string url) =>
Expand Down
5 changes: 5 additions & 0 deletions UpdateLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

### 2022.8.20 v0.4.6

- 提前适配AUA 新版token验证方案。

### 2022.8.11 v0.4.5

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

0 comments on commit d5df066

Please sign in to comment.