From 29b154a225d503015af68d2ac3355db3075e192a Mon Sep 17 00:00:00 2001 From: leiurayer <1432593898@qq.com> Date: Sun, 30 Apr 2023 18:25:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0UP=E4=B8=BB=E7=A9=BA=E9=97=B4?= =?UTF-8?q?API=20#722=20#730?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DownKyi.Core/BiliApi/Users/UserInfo.cs | 2 +- src/DownKyi.Core/BiliApi/Users/UserSpace.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DownKyi.Core/BiliApi/Users/UserInfo.cs b/src/DownKyi.Core/BiliApi/Users/UserInfo.cs index 30971a0..175f1e3 100644 --- a/src/DownKyi.Core/BiliApi/Users/UserInfo.cs +++ b/src/DownKyi.Core/BiliApi/Users/UserInfo.cs @@ -43,7 +43,7 @@ namespace DownKyi.Core.BiliApi.Users /// public static UserInfoForSpace GetUserInfoForSpace(long mid) { - string url = $"https://api.bilibili.com/x/space/acc/info?mid={mid}"; + string url = $"https://api.bilibili.com/x/space/wbi/acc/info?mid={mid}"; string referer = "https://www.bilibili.com"; string response = WebClient.RequestWeb(url, referer); diff --git a/src/DownKyi.Core/BiliApi/Users/UserSpace.cs b/src/DownKyi.Core/BiliApi/Users/UserSpace.cs index 9295a8b..c76af60 100644 --- a/src/DownKyi.Core/BiliApi/Users/UserSpace.cs +++ b/src/DownKyi.Core/BiliApi/Users/UserSpace.cs @@ -114,7 +114,7 @@ namespace DownKyi.Core.BiliApi.Users /// public static SpacePublicationList GetPublication(long mid, int pn, int ps, long tid = 0, PublicationOrder order = PublicationOrder.PUBDATE, string keyword = "") { - string url = $"https://api.bilibili.com/x/space/arc/search?mid={mid}&pn={pn}&ps={ps}&order={order.ToString("G").ToLower()}&tid={tid}&keyword={keyword}"; + string url = $"https://api.bilibili.com/x/space/wbi/arc/search?mid={mid}&pn={pn}&ps={ps}&order={order.ToString("G").ToLower()}&tid={tid}&keyword={keyword}"; string referer = "https://www.bilibili.com"; string response = WebClient.RequestWeb(url, referer);