mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: reply jump url
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -26,6 +26,7 @@ class SearchPanelController extends CommonController {
|
||||
String tag;
|
||||
int? pubBegin;
|
||||
int? pubEnd;
|
||||
bool? hasPushDetail;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
@@ -46,7 +47,10 @@ class SearchPanelController extends CommonController {
|
||||
?.insertAll(0, (loadingState.value as Success).response);
|
||||
}
|
||||
loadingState.value = LoadingState.success(response.response.list);
|
||||
if (currentPage == 1) {
|
||||
if (hasPushDetail != true &&
|
||||
currentPage == 1 &&
|
||||
searchType == SearchType.video) {
|
||||
hasPushDetail = true;
|
||||
onPushDetail(response.response.list);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -836,13 +836,11 @@ class ReplyItem extends StatelessWidget {
|
||||
),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () async {
|
||||
final String title = content.jumpUrl[matchStr]['title'];
|
||||
late final String title = content.url[matchStr]!.title;
|
||||
if (appUrlSchema == '') {
|
||||
if (matchStr.startsWith('BV')) {
|
||||
UrlUtils.matchUrlPush(
|
||||
matchStr,
|
||||
'',
|
||||
);
|
||||
if (RegExp(r'^(av|bv)', caseSensitive: false)
|
||||
.hasMatch(matchStr)) {
|
||||
UrlUtils.matchUrlPush(matchStr, '');
|
||||
} else if (RegExp(r'^[Cc][Vv][0-9]+$')
|
||||
.hasMatch(matchStr)) {
|
||||
Get.toNamed('/htmlRender', parameters: {
|
||||
|
||||
@@ -876,13 +876,11 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () async {
|
||||
final String title = content.url[matchStr]!.title;
|
||||
late final String title = content.url[matchStr]!.title;
|
||||
if (appUrlSchema == '') {
|
||||
if (matchStr.startsWith('BV')) {
|
||||
UrlUtils.matchUrlPush(
|
||||
matchStr,
|
||||
'',
|
||||
);
|
||||
if (RegExp(r'^(av|bv)', caseSensitive: false)
|
||||
.hasMatch(matchStr)) {
|
||||
UrlUtils.matchUrlPush(matchStr, '');
|
||||
} else if (RegExp(r'^[Cc][Vv][0-9]+$')
|
||||
.hasMatch(matchStr)) {
|
||||
Get.toNamed('/htmlRender', parameters: {
|
||||
|
||||
Reference in New Issue
Block a user