微调社区评论列表UI
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user