From 2b8372ccc301d8fadb9136d79303cc489e214d0c Mon Sep 17 00:00:00 2001 From: orz12 Date: Mon, 9 Sep 2024 08:19:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E4=B8=93=E6=A0=8F=E8=B7=B3=E8=BD=AC=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/history/widgets/item.dart | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/lib/pages/history/widgets/item.dart b/lib/pages/history/widgets/item.dart index a8a70af7..c539635a 100644 --- a/lib/pages/history/widgets/item.dart +++ b/lib/pages/history/widgets/item.dart @@ -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({