|
@@ -34,7 +34,7 @@ namespace GxPress.Api.AppControllers
|
|
|
{
|
|
|
// request.Content = StringUtils.RemoveEmoji(request.Content);
|
|
|
request.UserId = _loginContext.AccountId;
|
|
|
- if (string.IsNullOrWhiteSpace(request.Content) || string.IsNullOrWhiteSpace(request.JsonContent) || string.IsNullOrWhiteSpace(request.HtmlContent))
|
|
|
+ if (string.IsNullOrWhiteSpace(request.Content) && string.IsNullOrWhiteSpace(request.JsonContent) && string.IsNullOrWhiteSpace(request.HtmlContent))
|
|
|
throw new BusinessException("评论内容为空");
|
|
|
return await _commentRepository.CommentInAsync(request) > 0;
|
|
|
}
|