工作通知调整

This commit is contained in:
shuo.wang
2025-02-24 18:06:16 +08:00
parent 2807bc5b1c
commit a5caca6134
3 changed files with 4 additions and 4 deletions

View File

@@ -195,13 +195,13 @@ public enum MessageEnum {
return null; return null;
} }
public String getQWMessageUrl(String qywxUrl2, String corpId, Map<String, String> paramMap,String target) { public String getQWMessageUrl(String qywxUrl2, String corpId, Map<String, String> paramMap,String target,String eid) {
if (StringUtils.isAnyBlank(qywxUrl2, corpId) ) { if (StringUtils.isAnyBlank(qywxUrl2, corpId) ) {
return ""; return "";
} }
String messageUrl = null; String messageUrl = null;
try { try {
String noticeUrl = String.format(qywxUrl2, corpId,"qw_self_dkf",target,corpId,"qw"); String noticeUrl = String.format(qywxUrl2, corpId,"qw_self_dkf",target,corpId,"qw",eid);
String finalUrl = buildUrlWithParams(noticeUrl, paramMap); String finalUrl = buildUrlWithParams(noticeUrl, paramMap);
log.info("finalUrl:{}", finalUrl); log.info("finalUrl:{}", finalUrl);
messageUrl = URLEncoder.encode(finalUrl, "UTF-8"); messageUrl = URLEncoder.encode(finalUrl, "UTF-8");

View File

@@ -198,7 +198,7 @@ public class CommonService {
} }
try { try {
// String pcMessageUrl = message.getQWMessageUrl(qywxUrl1, dingCorpId, requestMap); // String pcMessageUrl = message.getQWMessageUrl(qywxUrl1, dingCorpId, requestMap);
String messageUrl = message.getQWMessageUrl(qywxUrl2, dingCorpId, requestMap,"todo"); String messageUrl = message.getQWMessageUrl(qywxUrl2, dingCorpId, requestMap,"todo",enterpriseId);
log.info("messageUrl:{}", messageUrl); log.info("messageUrl:{}", messageUrl);
if(StringUtils.isBlank(messageUrl)){ if(StringUtils.isBlank(messageUrl)){
log.info("获取通知url为空"); log.info("获取通知url为空");

View File

@@ -81,4 +81,4 @@ mybatis.configuration.variables.enterpriseId=5558ce7a3aa84e3590392fcaa8697ffb
enterprise.dingCorpId=wpayJeDAAAhGIFgUJpJN-zg39JuNbYhg enterprise.dingCorpId=wpayJeDAAAhGIFgUJpJN-zg39JuNbYhg
##qywx.task.notice.url1=https://tstore-api.coolstore.cn/notice?corpId=%s&appType=%s&target=%s ##qywx.task.notice.url1=https://tstore-api.coolstore.cn/notice?corpId=%s&appType=%s&target=%s
qywx.task.notice.url2=https://tstore-h5.coolstore.cn/?corpId=%s&appType=%s#/notice?target=%s&noticeType=zx&corpId=%s&appType=%s qywx.task.notice.url2=https://tstore-h5.coolstore.cn/?corpId=%s&appType=%s#/notice?target=%s&noticeType=zx&corpId=%s&appType=%s&eid=%s