mod: 还原aid

This commit is contained in:
guozhigq
2024-01-31 22:33:04 +08:00
parent 699361e04c
commit 9e93b50860
10 changed files with 16 additions and 18 deletions

View File

@ -11,13 +11,13 @@ import 'package:pilipala/utils/storage.dart';
class VideoReplyController extends GetxController {
VideoReplyController(
this.oid,
this.aid,
this.rpid,
this.replyLevel,
);
final ScrollController scrollController = ScrollController();
// 视频aid 请求时使用的oid
String? oid;
int? aid;
// 层级 2为楼中楼
String? replyLevel;
// rpid 请求楼中楼回复
@ -57,7 +57,7 @@ class VideoReplyController extends GetxController {
return;
}
final res = await ReplyHttp.replyList(
oid: oid!,
oid: aid!,
pageNum: currentPage + 1,
ps: ps,
type: ReplyType.video.index,

View File

@ -40,7 +40,6 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
bool _isFabVisible = true;
String replyLevel = '1';
late String heroTag;
late String oid;
// 添加页面缓存
@override
@ -49,7 +48,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
@override
void initState() {
super.initState();
oid = widget.bvid != null ? widget.bvid! : '0';
int oid = widget.bvid != null ? IdUtils.bv2av(widget.bvid!) : 0;
heroTag = Get.arguments['heroTag'];
replyLevel = widget.replyLevel ?? '1';
if (replyLevel == '2') {
@ -298,8 +297,8 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
isScrollControlled: true,
builder: (BuildContext context) {
return VideoReplyNewDialog(
oid:
_videoReplyController.oid ?? Get.parameters['bvid'],
oid: _videoReplyController.aid ??
IdUtils.bv2av(Get.parameters['bvid']!),
root: 0,
parent: 0,
replyType: ReplyType.video,

View File

@ -353,7 +353,7 @@ class ReplyItem extends StatelessWidget {
isScrollControlled: true,
builder: (builder) {
return VideoReplyNewDialog(
oid: IdUtils.av2bv(replyItem!.oid!),
oid: replyItem!.oid,
root: replyItem!.rpid,
parent: replyItem!.rpid,
replyType: replyType,