fix: 搜索结果类型为课堂时渲染异常

This commit is contained in:
guozhigq
2024-03-09 01:18:26 +08:00
parent df4539a035
commit 504be6fbda
3 changed files with 34 additions and 10 deletions

View File

@ -85,7 +85,9 @@ class SearchVideoItemModel {
// title = json['title'].replaceAll(RegExp(r'<.*?>'), '');
title = Em.regTitle(json['title']);
description = json['description'];
pic = 'https:${json['pic']}';
pic = json['pic'] != null && json['pic'].startsWith('//')
? 'https:${json['pic']}'
: json['pic'] ?? '';
videoReview = json['video_review'];
pubdate = json['pubdate'];
senddate = json['senddate'];