mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: remove ios ua
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -278,13 +278,8 @@ class Request {
|
||||
|
||||
static String headerUa({type = 'mob'}) {
|
||||
return switch (type) {
|
||||
'mob' => Platform.isIOS
|
||||
? 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 BiliApp/62000200'
|
||||
: 'Mozilla/5.0 (Linux; Android 10; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36',
|
||||
'android' =>
|
||||
'mob' =>
|
||||
'Mozilla/5.0 (Linux; Android 10; SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36',
|
||||
'ios' =>
|
||||
'Mozilla/5.0 (iPhone; CPU iPhone OS 14_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Mobile/15E148 BiliApp/62000200',
|
||||
_ =>
|
||||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15'
|
||||
};
|
||||
|
||||
@@ -29,7 +29,6 @@ class FavNoteItem extends StatelessWidget {
|
||||
Utils.handleWebview(
|
||||
item['web_url'],
|
||||
inApp: true,
|
||||
parameters: {'uaType': 'android'},
|
||||
);
|
||||
},
|
||||
onLongPress: () {
|
||||
|
||||
@@ -111,7 +111,6 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
|
||||
onPressed: () {
|
||||
_key.currentState?.showBottomSheet(
|
||||
(context) => WebviewPageNew(
|
||||
uaType: 'android',
|
||||
oid: widget.oid,
|
||||
title: widget.title,
|
||||
url:
|
||||
|
||||
@@ -65,10 +65,7 @@ class Utils {
|
||||
static void reportVideo(int aid) {
|
||||
Get.toNamed(
|
||||
'/webview',
|
||||
parameters: {
|
||||
'uaType': 'android',
|
||||
'url': 'https://www.bilibili.com/appeal/?avid=$aid'
|
||||
},
|
||||
parameters: {'url': 'https://www.bilibili.com/appeal/?avid=$aid'},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user