mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-08-15 07:41:00 +00:00
feat: log poll and lottery results
This commit is contained in:
@@ -368,6 +368,7 @@ public class PostService {
|
|||||||
for (User participant : pp.getParticipants()) {
|
for (User participant : pp.getParticipants()) {
|
||||||
notificationService.createNotification(participant, NotificationType.POLL_RESULT_PARTICIPANT, pp, null, null, null, null, null);
|
notificationService.createNotification(participant, NotificationType.POLL_RESULT_PARTICIPANT, pp, null, null, null, null, null);
|
||||||
}
|
}
|
||||||
|
postChangeLogService.recordVoteResult(pp);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -402,6 +403,7 @@ public class PostService {
|
|||||||
notificationService.createNotification(lp.getAuthor(), NotificationType.LOTTERY_DRAW, lp, null, null, null, null, null);
|
notificationService.createNotification(lp.getAuthor(), NotificationType.LOTTERY_DRAW, lp, null, null, null, null, null);
|
||||||
notificationService.sendCustomPush(lp.getAuthor(), "抽奖已开奖", String.format("%s/posts/%d", websiteUrl, lp.getId()));
|
notificationService.sendCustomPush(lp.getAuthor(), "抽奖已开奖", String.format("%s/posts/%d", websiteUrl, lp.getId()));
|
||||||
}
|
}
|
||||||
|
postChangeLogService.recordLotteryResult(lp);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user