Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复由于wbi鉴权导致的LiveFansMedal功能出现的错误 #557

Merged
merged 1 commit into from
Jun 1, 2023
Merged

修复由于wbi鉴权导致的LiveFansMedal功能出现的错误 #557

merged 1 commit into from
Jun 1, 2023

Conversation

Polaris-cn10086
Copy link
Contributor

【内容】:
修复在 #543 中由于wbi鉴权导致的LiveFansMedal功能错误的问题
同时修改的LiveApiTest单元测试中的GetSpaceInfo_Normal_Success()使其能测试wbi鉴权的api
所有修改基本依照v2.0.0中对wbi鉴权的修改
图片1

@Initial-heart-1
Copy link
Contributor

果然轮不到我来氵(
@RayWangQvQ commit 看过了,也测试 build 了,run 起来正常。
个人意见可以合,您看着啥时候有时间 Review 一下,方便尽快推新 Release?

@Initial-heart-1
Copy link
Contributor

附:选出的一个请求体与返回体(DBG Log)

2023-05-31 20:25:10.292 +08:00 [DBG] [REQUEST]
GET /x/web-interface/nav HTTP/1.1
Referer: https://www.bilibili.com/
Origin: https://www.bilibili.com
Host: api.bilibili.com
Accept: application/json, text/plain, */*, application/json; q=0.001, application/xml; q=0.001
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
Connection: keep-alive

[RESPONSE]
HTTP/1.1 200 OK
Date: Wed, 31 May 2023 12:25:10 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET,POST,PUT,DELETE
Access-Control-Allow-Origin: https://www.bilibili.com
Bili-Status-Code: 0
Bili-Trace-Id: ***
Vary: Origin
X-Bili-Aurora-Path-Route: /x/web-interface/
X-Bili-Aurora-Zone: ***
X-Bili-Trace-Id: ***
Access-Control-Allow-Headers: Origin,No-Cache,X-Requested-With,If-Modified-Since,Pragma,Last-Modified,Cache-Control,Expires,Content-Type,Access-Control-Allow-Credentials,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Cache-Webcdn,x-bilibili-key-real-ip,x-backend-bili-real-ip,x-risk-header
Cross-Origin-Resource-Policy: cross-origin
Access-Control-Expose-Headers: X-Bili-Gaia-Vvoucher, X-Cache-Webcdn
Cache-Control: no-cache
X-Cache-Webcdn: BYPASS from ***
Content-Type: application/json; charset=utf-8
Expires: Wed, 31 May 2023 12:25:09 GMT
Content-Length: 2284

@Polaris-cn10086
Copy link
Contributor Author

果然轮不到我来氵( @RayWangQvQ commit 看过了,也测试 build 了,run 起来正常。 个人意见可以合,您看着啥时候有时间 Review 一下,方便尽快推新 Release?

哈哈哈,当时 #543 刚提出来的时候就打算提个pr修复了。
本来忙着学一下 MAUI 就一直没搞,结果被 MAUI 整的头疼,又回来看看发现还没完全改好,就自己改了一下 Σ(゚∀゚ノ)ノ

@RayWangQvQ RayWangQvQ merged commit 3bd6931 into RayWangQvQ:develop Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants