工作通知调整
This commit is contained in:
@@ -195,13 +195,13 @@ public enum MessageEnum {
|
||||
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) ) {
|
||||
return "";
|
||||
}
|
||||
String messageUrl = null;
|
||||
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);
|
||||
log.info("finalUrl:{}", finalUrl);
|
||||
messageUrl = URLEncoder.encode(finalUrl, "UTF-8");
|
||||
|
||||
@@ -198,7 +198,7 @@ public class CommonService {
|
||||
}
|
||||
try {
|
||||
// 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);
|
||||
if(StringUtils.isBlank(messageUrl)){
|
||||
log.info("获取通知url为空");
|
||||
|
||||
@@ -81,4 +81,4 @@ mybatis.configuration.variables.enterpriseId=5558ce7a3aa84e3590392fcaa8697ffb
|
||||
enterprise.dingCorpId=wpayJeDAAAhGIFgUJpJN-zg39JuNbYhg
|
||||
|
||||
##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¬iceType=zx&corpId=%s&appType=%s
|
||||
qywx.task.notice.url2=https://tstore-h5.coolstore.cn/?corpId=%s&appType=%s#/notice?target=%s¬iceType=zx&corpId=%s&appType=%s&eid=%s
|
||||
|
||||
Reference in New Issue
Block a user