微调社区评论列表UI

This commit is contained in:
jack
2021-10-22 15:55:06 +08:00
parent e669df00b4
commit 4ca302f5fc
2 changed files with 17 additions and 12 deletions

View File

@ -132,9 +132,7 @@ open class NewCommentViewModel(
fun postComment(content: String, imageUrls: List<String>?, commentEntity: CommentEntity?) {
val api = RetrofitManager.getInstance(getApplication()).api
val requestMap = hashMapOf<String, Any>()
if (content.isNotEmpty()) {
requestMap["content"] = content
}
requestMap["content"] = content
if (!imageUrls.isNullOrEmpty()) {
requestMap["images"] = imageUrls
}