mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: jump from invalid fav item
Closes #416 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -56,6 +56,8 @@ class FavDetailItemData {
|
||||
int? page;
|
||||
int? duration;
|
||||
Owner? owner;
|
||||
// https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/fav/list.md
|
||||
// | attr | num | 失效 | 0: 正常;9: up自己删除;1: 其他原因删除 |
|
||||
int? attr;
|
||||
Map? cntInfo;
|
||||
String? link;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:PiliPlus/common/widgets/icon_button.dart';
|
||||
import 'package:PiliPlus/common/widgets/image_save.dart';
|
||||
import 'package:PiliPlus/models/user/fav_detail.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -59,6 +60,10 @@ class FavVideoCardH extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
if (videoItem is FavDetailItemData && videoItem.attr != 0) {
|
||||
Get.toNamed('/member?mid=${videoItem.owner?.mid}');
|
||||
return;
|
||||
}
|
||||
Utils.toViewPage(
|
||||
'bvid=$bvid&cid=${videoItem.cid}${epId?.isNotEmpty == true ? '&epId=$epId' : ''}',
|
||||
arguments: {
|
||||
|
||||
@@ -398,7 +398,10 @@ class ChatItem extends StatelessWidget {
|
||||
: isRevoke
|
||||
? const SizedBox()
|
||||
: GestureDetector(
|
||||
onLongPress: onLongPress,
|
||||
onLongPress: () {
|
||||
Feedback.forLongPress(context);
|
||||
onLongPress?.call();
|
||||
},
|
||||
child: Row(
|
||||
children: [
|
||||
if (!isOwner) const SizedBox(width: 12),
|
||||
|
||||
Reference in New Issue
Block a user