修改--点赞自己作品时不会发送点赞消息
This commit is contained in:
parent
558b287032
commit
0cc65f9a4e
@ -2011,16 +2011,19 @@ public class AppSystemController extends BaseController {
|
||||
|
||||
|
||||
|
||||
// 发送点赞消息
|
||||
// String userName = sysUserService.selectUserById(userId).getNickName();
|
||||
SysUserNotification sysUserNotification = new SysUserNotification();
|
||||
sysUserNotification.setSenderId(userId);
|
||||
sysUserNotification.setUserId(userWork.getUserId());
|
||||
sysUserNotification.setType("2");
|
||||
sysUserNotification.setStatus("0");
|
||||
sysUserNotification.setTargetId(workId);
|
||||
sysUserNotification.setDetail("点赞了你的作品");
|
||||
userNotificationService.insertSysUserNotification(sysUserNotification);
|
||||
// 发送点赞消息, 自己给自己点赞就不发消息了
|
||||
if(!userId.equals(userWork.getUserId())){
|
||||
|
||||
SysUserNotification sysUserNotification = new SysUserNotification();
|
||||
sysUserNotification.setSenderId(userId);
|
||||
sysUserNotification.setUserId(userWork.getUserId());
|
||||
sysUserNotification.setType("2");
|
||||
sysUserNotification.setStatus("0");
|
||||
sysUserNotification.setTargetId(workId);
|
||||
sysUserNotification.setDetail("点赞了你的作品");
|
||||
userNotificationService.insertSysUserNotification(sysUserNotification);
|
||||
}
|
||||
|
||||
|
||||
if(userWork.getSourceId()!= null){
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user