feat: 待办飞书通知

This commit is contained in:
裴浩宇 2024-05-06 15:24:21 +08:00
parent 94a8a0c455
commit 0c646549ca

View File

@ -4,6 +4,7 @@ import com.pnkx.common.constant.RedisConstants;
import com.pnkx.common.constant.WebsiteAddressConstants;
import com.pnkx.common.core.domain.AjaxResult;
import com.pnkx.common.core.domain.entity.SysUser;
import com.pnkx.common.notify.FeishuISysNotify;
import com.pnkx.common.utils.SecurityUtils;
import com.pnkx.common.utils.StringUtils;
import com.pnkx.common.utils.reflect.ReflectUtils;
@ -108,6 +109,7 @@ public class PxTask {
sysEmail.setContent(activationTemplate);
try {
sysEmailService.sendMail(sysEmail);
FeishuISysNotify.sendNotification(todoRemind.toString(), "/mytool/todo");
} catch (Exception e) {
logger.error("发送待办提醒邮件异常,异常信息为:{}", e.getMessage());
}