优化视频贴类型转化
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user