fix: 观看记录异常

This commit is contained in:
guozhigq
2023-06-20 23:38:05 +08:00
parent c2f8f143f8
commit fe93eb690c
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class HisListItem {
String? longTitle;
String? cover;
String? pic;
String? covers;
List? covers;
String? uri;
History? history;
int? videos;
@ -111,7 +111,7 @@ class HisListItem {
longTitle = json['long_title'];
cover = json['cover'];
pic = json['cover'] ?? '';
covers = json['covers'] ?? '';
covers = json['covers'] ?? [];
uri = json['uri'];
history = History.fromJson(json['history']);
videos = json['videos'];

View File

@ -15,7 +15,7 @@ class HistoryItem extends StatelessWidget {
return InkWell(
onTap: () async {
await Future.delayed(const Duration(milliseconds: 200));
Get.toNamed('/video?aid=$aid',
Get.toNamed('/video?aid=$aid&cid=${videoItem.history.cid}',
arguments: {'heroTag': heroTag, 'pic': videoItem.cover});
},
child: Column(