From bb3ae74a7c8c9adfaf2b43c0742dd730546aa916 Mon Sep 17 00:00:00 2001 From: luoweijian <1329394916@qq.com> Date: Tue, 17 Mar 2026 16:42:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/NotifyExamRecordDomainServiceImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/project/exam/domain/service/impl/NotifyExamRecordDomainServiceImpl.java b/src/main/java/com/project/exam/domain/service/impl/NotifyExamRecordDomainServiceImpl.java index 8daa7cf..94769b1 100644 --- a/src/main/java/com/project/exam/domain/service/impl/NotifyExamRecordDomainServiceImpl.java +++ b/src/main/java/com/project/exam/domain/service/impl/NotifyExamRecordDomainServiceImpl.java @@ -4,6 +4,7 @@ import com.github.tingyugetc520.ali.dingtalk.api.DtService; import com.github.tingyugetc520.ali.dingtalk.bean.message.DtCorpConversationMessage; import com.github.tingyugetc520.ali.dingtalk.bean.message.DtCorpConversationMsgSendResult; import com.github.tingyugetc520.ali.dingtalk.bean.message.DtMessage; +import com.project.ding.config.DingProperties; import com.project.ding.utils.SecurityUtils; import com.project.exam.domain.dto.ExamRecordDTO; import com.project.exam.domain.service.NotifyExamRecordDomainService; @@ -20,6 +21,9 @@ public class NotifyExamRecordDomainServiceImpl implements NotifyExamRecordDomain @Autowired private DtService dtService; + @Autowired + private DingProperties dingProperties; + @Override public void notifyExamRecord(ExamRecordDTO dto) { String userId = SecurityUtils.getUserId(); @@ -39,7 +43,10 @@ public class NotifyExamRecordDomainServiceImpl implements NotifyExamRecordDomain .markdown(markdown) .singleTitle("查看详情") // todo 修改为对应页面 - .singleUrl("https://www.baidu.com/").build()) + .singleUrl(dingProperties.getNoticeUrlPrefix() + + "examResult/?" + "dd_nav_translucent=true&dd_full_screen=true&dd_nav_bgcolor=33E0EEFF" + + "&corpid=" + dingProperties.getCorpId() + "&id=" + dto.getId() + "&index=1" + ).build()) .build(); DtCorpConversationMsgSendResult result = dtService.getCorpConversationMsgService().send(message); if (result.getErrCode() == 0) {