opt: handle pm share type

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-25 16:37:02 +08:00
parent 2063c366c2
commit 9a1b15029e
7 changed files with 168 additions and 69 deletions

View File

@@ -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) {