mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 历史记录专栏跳转失败
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:PiliPalaX/utils/app_scheme.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
import 'package:get/get.dart';
|
||||
@@ -42,17 +43,19 @@ class HistoryItem extends StatelessWidget {
|
||||
return;
|
||||
}
|
||||
if (videoItem.history.business.contains('article')) {
|
||||
int cid = videoItem.history.cid ??
|
||||
// videoItem.history.oid ??
|
||||
await SearchHttp.ab2c(aid: aid, bvid: bvid);
|
||||
Get.toNamed(
|
||||
'/webviewnew',
|
||||
parameters: {
|
||||
'url': 'https://www.bilibili.com/read/cv$cid',
|
||||
'type': 'note',
|
||||
'pageTitle': videoItem.title
|
||||
},
|
||||
);
|
||||
// int cid = videoItem.history.cid ??
|
||||
// // videoItem.history.oid ??
|
||||
// await SearchHttp.ab2c(aid: aid, bvid: bvid);
|
||||
// Get.toNamed(
|
||||
// '/webviewnew',
|
||||
// parameters: {
|
||||
// 'url': 'https://www.bilibili.com/read/cv$cid',
|
||||
// 'type': 'note',
|
||||
// 'pageTitle': videoItem.title
|
||||
// },
|
||||
// );
|
||||
PiliScheme.routePush(Uri.parse(
|
||||
"https://www.bilibili.com/read/cv${videoItem.history.oid}"));
|
||||
} else if (videoItem.history.business == 'live') {
|
||||
if (videoItem.liveStatus == 1) {
|
||||
LiveItemModel liveItem = LiveItemModel.fromJson({
|
||||
|
||||
Reference in New Issue
Block a user