|
|
@ -5,20 +5,26 @@ |
|
|
//import com.github.tingyugetc520.ali.dingtalk.bean.message.DtCorpConversationMessage;
|
|
|
//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.DtCorpConversationMsgSendResult;
|
|
|
//import com.github.tingyugetc520.ali.dingtalk.bean.message.DtMessage;
|
|
|
//import com.github.tingyugetc520.ali.dingtalk.bean.message.DtMessage;
|
|
|
|
|
|
//import com.project.ding.config.DingProperties;
|
|
|
//import org.junit.Test;
|
|
|
//import org.junit.Test;
|
|
|
//import org.junit.runner.RunWith;
|
|
|
//import org.junit.runner.RunWith;
|
|
|
//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
//import org.springframework.boot.test.context.SpringBootTest;
|
|
|
//import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
|
|
//import org.springframework.test.context.ActiveProfiles;
|
|
|
//import org.springframework.test.context.junit4.SpringRunner;
|
|
|
//import org.springframework.test.context.junit4.SpringRunner;
|
|
|
//
|
|
|
//
|
|
|
//import java.util.Collections;
|
|
|
//import java.util.Collections;
|
|
|
//
|
|
|
//
|
|
|
//@SpringBootTest
|
|
|
//@SpringBootTest
|
|
|
//@RunWith(SpringRunner.class) // 必须添加这一行
|
|
|
//@RunWith(SpringRunner.class) // 必须添加这一行
|
|
|
//
|
|
|
//@ActiveProfiles("test") // 假设你想使用 application-dev.yml
|
|
|
//public class NotifyExamRecordDomainServiceImplTest {
|
|
|
//public class NotifyExamRecordDomainServiceImplTest {
|
|
|
// @Autowired
|
|
|
// @Autowired
|
|
|
// private DtService dtService;
|
|
|
// private DtService dtService;
|
|
|
|
|
|
//
|
|
|
|
|
|
//
|
|
|
|
|
|
// @Autowired
|
|
|
|
|
|
// private DingProperties dingProperties;
|
|
|
// @Test
|
|
|
// @Test
|
|
|
// public void notifyExamRecord() {
|
|
|
// public void notifyExamRecord() {
|
|
|
// System.out.println("111");
|
|
|
// System.out.println("111");
|
|
|
@ -39,9 +45,10 @@ |
|
|
// .markdown(markdown)
|
|
|
// .markdown(markdown)
|
|
|
// .singleTitle("查看详情")
|
|
|
// .singleTitle("查看详情")
|
|
|
// // todo 修改为对应页面
|
|
|
// // todo 修改为对应页面
|
|
|
// .singleUrl("http://172.16.25.182:5173/examResult/?" +
|
|
|
// .singleUrl(dingProperties.getNoticeUrlPrefix() +
|
|
|
// "dd_nav_translucent=true&dd_full_screen=true&dd_nav_bgcolor=33E0EEFF&" +
|
|
|
// "/examResult/?" + "dd_nav_translucent=true&dd_full_screen=true&dd_nav_bgcolor=33E0EEFF" +
|
|
|
// "corpid=ding13d71da66ad91ff0f5bf40eda33b7ba0&id=688755610295992320&index=1").build())
|
|
|
// "&corpid=" + dingProperties.getCorpId() + "&id=" + "689503022862041088" + "&index=1"
|
|
|
|
|
|
// ).build())
|
|
|
// .build();
|
|
|
// .build();
|
|
|
// DtCorpConversationMsgSendResult result = dtService.getCorpConversationMsgService().send(message);
|
|
|
// DtCorpConversationMsgSendResult result = dtService.getCorpConversationMsgService().send(message);
|
|
|
// if (result.getErrCode() == 0) {
|
|
|
// if (result.getErrCode() == 0) {
|
|
|
|