mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-22 11:30:13 +08:00
feat: live feedback (#2456)
This commit is contained in:
committed by
GitHub
parent
2d389424af
commit
3a5636ecee
@@ -1,7 +1,6 @@
|
||||
import 'package:PiliPlus/common/widgets/custom_icon.dart';
|
||||
import 'package:PiliPlus/http/user.dart';
|
||||
import 'package:PiliPlus/http/video.dart';
|
||||
import 'package:PiliPlus/models/common/account_type.dart';
|
||||
import 'package:PiliPlus/models/home/rcmd/result.dart';
|
||||
import 'package:PiliPlus/models/model_video.dart';
|
||||
import 'package:PiliPlus/models_new/space/space_archive/item.dart';
|
||||
@@ -56,11 +55,12 @@ class VideoPopupMenu extends StatelessWidget {
|
||||
const Icon(CustomIcons.identifier_circle, size: 16),
|
||||
() => Utils.copyText(videoItem.bvid!),
|
||||
),
|
||||
_VideoCustomAction(
|
||||
'稍后再看',
|
||||
const Icon(MdiIcons.clockTimeEightOutline, size: 16),
|
||||
() => UserHttp.toViewLater(bvid: videoItem.bvid),
|
||||
),
|
||||
if (Accounts.main.isLogin)
|
||||
_VideoCustomAction(
|
||||
'稍后再看',
|
||||
const Icon(MdiIcons.clockTimeEightOutline, size: 16),
|
||||
() => UserHttp.toViewLater(bvid: videoItem.bvid),
|
||||
),
|
||||
if (videoItem.cid != null && Pref.enableAi)
|
||||
_VideoCustomAction(
|
||||
'AI总结',
|
||||
@@ -100,11 +100,11 @@ class VideoPopupMenu extends StatelessWidget {
|
||||
'不感兴趣',
|
||||
const Icon(MdiIcons.thumbDownOutline, size: 16),
|
||||
() {
|
||||
String? accessKey = Accounts.get(
|
||||
AccountType.recommend,
|
||||
).accessKey;
|
||||
if (accessKey == null || accessKey == "") {
|
||||
SmartDialog.showToast("请退出账号后重新登录");
|
||||
final rcmd = Accounts.get(.recommend);
|
||||
if (rcmd.accessKey == null || rcmd.accessKey == "") {
|
||||
SmartDialog.showToast(
|
||||
rcmd.isLogin ? '请退出账号后重新登录' : '账号未登录',
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (videoItem case final RcmdVideoItemAppModel item) {
|
||||
|
||||
Reference in New Issue
Block a user