mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-14 21:24:02 +08:00
@@ -5,7 +5,6 @@ import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/models/common/video/video_type.dart';
|
||||
import 'package:PiliPlus/pages/common/reply_controller.dart';
|
||||
import 'package:PiliPlus/pages/video/controller.dart';
|
||||
import 'package:PiliPlus/utils/id_utils.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class VideoReplyController extends ReplyController<MainListReply> {
|
||||
@@ -21,9 +20,6 @@ class VideoReplyController extends ReplyController<MainListReply> {
|
||||
final String heroTag;
|
||||
late final videoCtr = Get.find<VideoDetailController>(tag: heroTag);
|
||||
|
||||
@override
|
||||
dynamic get sourceId => IdUtils.av2bv(aid);
|
||||
|
||||
@override
|
||||
List<ReplyInfo>? getDataList(MainListReply response) {
|
||||
return response.replies;
|
||||
@@ -33,7 +29,7 @@ class VideoReplyController extends ReplyController<MainListReply> {
|
||||
Future<LoadingState<MainListReply>> customGetData() => ReplyGrpc.mainList(
|
||||
oid: isPugv ? videoCtr.epId! : aid,
|
||||
type: videoType.replyType,
|
||||
mode: mode.value,
|
||||
mode: mode,
|
||||
cursorNext: cursorNext,
|
||||
offset: paginationReply?.nextOffset,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user