Skip to content

Commit

Permalink
修复访问权限不足问题 (#55)
Browse files Browse the repository at this point in the history
* Update UserDetailView.swift

* Trying to fix issue

* Trying to fix issue

* Trying to fix issue

* Trying to fix issue

* Trying to fix issue
  • Loading branch information
WindowsMEMZ authored Jan 5, 2024
1 parent f1a8cfc commit f7b95bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DarockBili Watch App/PersonalCenter/UserDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,11 @@ struct UserDetailView: View {
func RefreshVideos() {
videos = [[String: String]]()
let headers: HTTPHeaders = [
"accept-language": "en,zh-CN;q=0.9,zh;q=0.8",
"cookie": "SESSDATA=\(sessdata); buvid3=\(globalBuvid3); buvid4=\(globalBuvid4);",
"User-Agent": "Mozilla/5.0" // Bypass? drdar://gh/SocialSisterYi/bilibili-API-collect/issues/868/1859065874
// "accept-language": "zh-CN,zh;q=0.9",
"cookie": "SESSDATA=\(sessdata);", // buvid3=\(globalBuvid3);buvid4=\(globalBuvid4);
//"User-Agent": "Mozilla/5.0" // Bypass? drdar://gh/SocialSisterYi/bilibili-API-collect/issues/868/1859065874
]
// FIXME: Apply changes to RefreshArticles method after checking ability.
biliWbiSign(paramEncoded: "mid=\(uid)&ps=50&pn=\(videoNowPage)".base64Encoded()) { signed in
if let signed {
debugPrint(signed)
Expand Down

0 comments on commit f7b95bc

Please sign in to comment.