修复取消收藏接口

This commit is contained in:
TinyAnts
2022-09-08 18:03:17 +08:00
parent db5588577b
commit cc481438df

View File

@@ -108,7 +108,7 @@ public class ArticleController {
@PostMapping("/cancelCollect")
public Object cancelCollect(@RequestBody Map<String, String> params) {
Assert.notNull(params.get("articleId"), "id参数缺失");
Integer id = Integer.parseInt(params.get("articleId"));
Integer articleId = Integer.parseInt(params.get("articleId"));
Integer userId = LikeFrontThreadLocal.getUserId();
iArticleService.cancelCollect(articleId, userId);
return AjaxResult.success();