|
@@ -49,7 +49,7 @@ public class PublishThumbsController extends AppBaseController {
|
|
|
@ApiImplicitParam(name = "publishId", value = "发表id",paramType="Long")
|
|
|
})
|
|
|
@GetMapping("/action")
|
|
|
- public AjaxResult action(@LoginAppUser AppMemberVo user, Long appUserId, Long publishId){
|
|
|
+ public AjaxResult action(Long appUserId, Long publishId){
|
|
|
// TODO 在点赞或取消时,APP端的点赞数组异步增加或去掉记录
|
|
|
if (appUserId == null || publishId == null) {
|
|
|
return AjaxResult.error("参数不能为空");
|
|
@@ -59,6 +59,7 @@ public class PublishThumbsController extends AppBaseController {
|
|
|
.eq(TbPublishThumbs::getAppUserId,appUserId)
|
|
|
.last("limit 1")
|
|
|
);
|
|
|
+ AppMemberVo user = getLoginUser().getUser();
|
|
|
Date date = new Date();
|
|
|
// 点赞
|
|
|
if (thumbs == null) {
|