mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 02:26:52 +08:00
opt type
opt ua opt subtitle opt playertype Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -34,7 +34,7 @@ class PgcIntroController extends CommonIntroController {
|
||||
? int.tryParse(Get.parameters['epId']!)
|
||||
: null;
|
||||
|
||||
late dynamic type =
|
||||
late final String pgcType =
|
||||
Get.parameters['type'] == '1' || Get.parameters['type'] == '4'
|
||||
? '追番'
|
||||
: '追剧';
|
||||
@@ -139,9 +139,9 @@ class PgcIntroController extends CommonIntroController {
|
||||
|
||||
// (取消)收藏 pgc
|
||||
@override
|
||||
Future<void> actionFavVideo({String type = 'choose'}) async {
|
||||
Future<void> actionFavVideo({bool isQuick = false}) async {
|
||||
// 收藏至默认文件夹
|
||||
if (type == 'default') {
|
||||
if (isQuick) {
|
||||
SmartDialog.showLoading(msg: '请求中');
|
||||
queryVideoInFolder().then((res) async {
|
||||
if (res['status']) {
|
||||
|
||||
@@ -176,7 +176,8 @@ class _PgcIntroPageState extends State<PgcIntroPage>
|
||||
if (isFollowed) {
|
||||
showPgcFollowDialog(
|
||||
context: context,
|
||||
type: pgcIntroController.type,
|
||||
type:
|
||||
pgcIntroController.pgcType,
|
||||
followStatus: followStatus,
|
||||
onUpdateStatus: (followStatus) {
|
||||
if (followStatus == -1) {
|
||||
@@ -195,8 +196,8 @@ class _PgcIntroPageState extends State<PgcIntroPage>
|
||||
},
|
||||
child: Text(
|
||||
isFollowed
|
||||
? '已${pgcIntroController.type}'
|
||||
: '${pgcIntroController.type}',
|
||||
? '已${pgcIntroController.pgcType}'
|
||||
: pgcIntroController.pgcType,
|
||||
),
|
||||
);
|
||||
},
|
||||
@@ -317,7 +318,7 @@ class _PgcIntroPageState extends State<PgcIntroPage>
|
||||
onTap: () => pgcIntroController.showFavBottomSheet(context),
|
||||
onLongPress: () => pgcIntroController.showFavBottomSheet(
|
||||
context,
|
||||
type: 'longPress',
|
||||
isLongPress: true,
|
||||
),
|
||||
selectStatus: pgcIntroController.hasFav.value,
|
||||
semanticsLabel: '收藏',
|
||||
|
||||
Reference in New Issue
Block a user