优化视频贴类型转化

This commit is contained in:
lyr
2021-06-09 18:25:27 +08:00
parent 54747143d1
commit 2e09ac033b
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ class AnswerEntity() : Parcelable {
fun transformForumVideoEntity(): ForumVideoEntity {
val forumVideoEntity = ForumVideoEntity()
if (type == "video") {
if (type.contains("video")) {
forumVideoEntity.id = id ?: ""
forumVideoEntity.title = articleTitle ?: ""
forumVideoEntity.des = des

View File

@ -92,7 +92,7 @@ data class ArticleEntity(
fun transformForumVideoEntity(): ForumVideoEntity {
val forumVideoEntity = ForumVideoEntity()
if (type == "video") {
if (type.contains("video")) {
forumVideoEntity.id = id ?: ""
forumVideoEntity.title = title
forumVideoEntity.des = des