mod: 历史记录跳转直播

This commit is contained in:
guozhigq
2023-07-15 00:04:26 +08:00
parent ff5ba9dafa
commit ab203e121c
2 changed files with 25 additions and 8 deletions

View File

@ -21,13 +21,12 @@ class LiveRoomController extends GetxController {
@override
void onInit() {
super.onInit();
roomId = int.parse(Get.parameters['roomId']!);
if (Get.arguments != null) {
var args = Get.arguments['liveItem'];
liveItem = Get.arguments['liveItem'];
heroTag = Get.arguments['heroTag'] ?? '';
liveItem = args;
roomId = liveItem.roomId!;
if (args.pic != null && args.pic != '') {
cover = args.cover;
if (liveItem.pic != null && liveItem.pic != '') {
cover = liveItem.cover;
}
}
queryLiveInfo();