mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: handle pm share type
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -24,9 +24,10 @@ class HtmlHttp {
|
||||
}
|
||||
try {
|
||||
if (response.data.contains('Redirecting to')) {
|
||||
String? cvid = RegExp(r'cv\d+').firstMatch(response.data)?.group(0);
|
||||
if (cvid != null) {
|
||||
return await reqReadHtml(cvid, dynamicType, false);
|
||||
RegExpMatch? cvid =
|
||||
RegExp(r'/([a-zA-Z]+)/(cv\d+)').firstMatch(response.data);
|
||||
if (cvid?.group(2) != null) {
|
||||
return await reqReadHtml(cvid?.group(2), cvid?.group(1), false);
|
||||
}
|
||||
|
||||
RegExp regex = RegExp(r'//([\w\.]+)/(\w+)/(\w+)');
|
||||
@@ -185,6 +186,7 @@ class HtmlHttp {
|
||||
'updateTime': '',
|
||||
'content': opusContent,
|
||||
'isJsonContent': isJsonContent,
|
||||
'commentType': 12,
|
||||
'commentId': int.parse(number),
|
||||
};
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user