diff --git a/.github/.DS_Store b/.github/.DS_Store deleted file mode 100644 index a5329412a..000000000 Binary files a/.github/.DS_Store and /dev/null differ diff --git a/Localizable.xcstrings b/Localizable.xcstrings index a41fe8e90..3155f3909 100644 --- a/Localizable.xcstrings +++ b/Localizable.xcstrings @@ -4732,35 +4732,6 @@ } } }, - "Home.update.%@.%@" : { - "extractionState" : "stale", - "localizations" : { - "en" : { - "stringUnit" : { - "state" : "translated", - "value" : "v%1$@ build %2$@ had released" - } - }, - "ja" : { - "stringUnit" : { - "state" : "translated", - "value" : "v%1$@ ビルド %2$@がリリースされました" - } - }, - "zh-Hans" : { - "stringUnit" : { - "state" : "translated", - "value" : "v%1$@ Build %2$@已推出" - } - }, - "zh-Hant" : { - "stringUnit" : { - "state" : "translated", - "value" : "v%1$@ Build %2$@已經推出" - } - } - } - }, "Home.update.skip" : { "localizations" : { "en" : { @@ -9731,7 +9702,7 @@ "en" : { "stringUnit" : { "state" : "translated", - "value" : "MeowBili\nBuild Beta. Build %1$@.xc_verd.%2$@" + "value" : "MeowBili\nDebug Build. Build %1$@.xc_verd.%2$@" } }, "zh-Hans" : { @@ -10256,9 +10227,6 @@ } } } - }, - "手记建议" : { - }, "扩展的触感反馈" : { "localizations" : { diff --git a/MeowBili/InMain/ContentView.swift b/MeowBili/InMain/ContentView.swift index 6ab0bc95d..86eced988 100644 --- a/MeowBili/InMain/ContentView.swift +++ b/MeowBili/InMain/ContentView.swift @@ -125,6 +125,7 @@ struct ContentView: View { getBuvid(url: "https://api.bilibili.com/x/space/wbi/acc/info".urlEncoded()) { buvid3, buvid4, _uuid, _ in let headers: HTTPHeaders = [ "cookie": "SESSDATA=\(sessdata); innersign=0; buvid3=\(buvid3); b_nut=1704873471; i-wanna-go-back=-1; b_ut=7; b_lsid=9910433CB_18CF260AB89; _uuid=\(_uuid); enable_web_push=DISABLE; header_theme_version=undefined; home_feed_column=4; browser_resolution=3440-1440; buvid4=\(buvid4);", + "referer": "https://message.bilibili.com/", // rdar://gh/SocialSisterYi/bilibili-API-collect/issues/631#issuecomment-2099276628 "User-Agent": "Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" ] biliWbiSign(paramEncoded: "mid=\(dedeUserID)".base64Encoded()) { signed in diff --git a/MeowBili/InMain/MainView.swift b/MeowBili/InMain/MainView.swift index 795fe2728..acc5fb31a 100644 --- a/MeowBili/InMain/MainView.swift +++ b/MeowBili/InMain/MainView.swift @@ -113,7 +113,8 @@ struct MainView: View { .onAppear { if username == "" { let headers: HTTPHeaders = [ - "cookie": "SESSDATA=\(sessdata); innersign=0; buvid3=\(globalBuvid3); b_nut=1704873471; i-wanna-go-back=-1; b_ut=7; b_lsid=9910433CB_18CF260AB89; enable_web_push=DISABLE; header_theme_version=undefined; home_feed_column=4; browser_resolution=3440-1440; buvid4=\(globalBuvid4); bili_ticket=\(cachedBiliTicket)", + "cookie": "SESSDATA=\(sessdata)", + "referer": "https://message.bilibili.com/", // rdar://gh/SocialSisterYi/bilibili-API-collect/issues/631#issuecomment-2099276628 "User-Agent": "Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" ] biliWbiSign(paramEncoded: "mid=\(dedeUserID)".base64Encoded()) { signed in @@ -179,7 +180,7 @@ struct MainView: View { Section { if debug { Button(action: { - + tipWithText("Test") }, label: { Text("Home.debug") }) diff --git a/MeowBili/PersonalCenter/PersonAccountView.swift b/MeowBili/PersonalCenter/PersonAccountView.swift index 5dd82ac62..ce5fa0cc1 100644 --- a/MeowBili/PersonalCenter/PersonAccountView.swift +++ b/MeowBili/PersonalCenter/PersonAccountView.swift @@ -210,15 +210,16 @@ struct PersonAccountView: View { } } .onAppear { - getAccountInfos() + getAccountInfo() } .sheet(isPresented: $isNetworkFixPresented, content: { NetworkFixView() }) } - func getAccountInfos() { + func getAccountInfo() { if username == "" { getBuvid(url: "https://api.bilibili.com/x/space/wbi/acc/info".urlEncoded()) { buvid3, buvid4, _uuid, _ in let headers: HTTPHeaders = [ "cookie": "SESSDATA=\(sessdata); innersign=0; buvid3=\(buvid3); b_nut=1704873471; i-wanna-go-back=-1; b_ut=7; b_lsid=9910433CB_18CF260AB89; _uuid=\(_uuid); enable_web_push=DISABLE; header_theme_version=undefined; home_feed_column=4; browser_resolution=3440-1440; buvid4=\(buvid4);", + "referer": "https://message.bilibili.com/", // rdar://gh/SocialSisterYi/bilibili-API-collect/issues/631#issuecomment-2099276628 "User-Agent": "Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" ] biliWbiSign(paramEncoded: "mid=\(dedeUserID)".base64Encoded()) { signed in diff --git a/MeowBili/PersonalCenter/UserDetailView.swift b/MeowBili/PersonalCenter/UserDetailView.swift index d52702e0c..9b4c14a47 100644 --- a/MeowBili/PersonalCenter/UserDetailView.swift +++ b/MeowBili/PersonalCenter/UserDetailView.swift @@ -330,6 +330,7 @@ struct UserDetailView: View { .onAppear { let headers: HTTPHeaders = [ "cookie": "SESSDATA=\(sessdata); buvid3=\(globalBuvid3); bili_ticket=\(cachedBiliTicket)", + "referer": "https://message.bilibili.com/", // rdar://gh/SocialSisterYi/bilibili-API-collect/issues/631#issuecomment-2099276628 "User-Agent": "Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" ] biliWbiSign(paramEncoded: "mid=\(uid)".base64Encoded()) { signed in