|
@@ -50,7 +50,7 @@ public class CommunityArticleController extends BaseController {
|
|
|
//@Anonymous
|
|
|
public AjaxResult like(@RequestBody CommunityLike communityLike) {
|
|
|
if (Objects.isNull(communityLike.getArticleId()) || Objects.isNull(communityLike.getUserId())) {
|
|
|
- AjaxResult.error("文章或用户信息异常!");
|
|
|
+ return AjaxResult.error("文章或用户信息异常!");
|
|
|
}
|
|
|
boolean isSuccess = true;
|
|
|
String message = "";
|
|
@@ -81,7 +81,7 @@ public class CommunityArticleController extends BaseController {
|
|
|
//@Anonymous
|
|
|
public AjaxResult collect(@RequestBody CommunityArticleCollect communityArticleCollect) {
|
|
|
if (Objects.isNull(communityArticleCollect.getArticleId()) || Objects.isNull(communityArticleCollect.getUserId())) {
|
|
|
- AjaxResult.error("文章或用户信息异常!");
|
|
|
+ return AjaxResult.error("文章或用户信息异常!");
|
|
|
}
|
|
|
boolean isSuccess = true;
|
|
|
String message = "";
|