Merge branch 'feature/REQ-1507' of axzsource.com:universal/infrastructure/backend/msg-center-plat into dev

This commit is contained in:
luofu 2023-11-24 09:03:58 +08:00
commit 3c788cfa2a

View File

@ -385,7 +385,6 @@ public class PendingMessageNewServiceImpl implements PendingMessageNewService {
.orElse(null);
// 解析并替换掉路由地址中的动态参数变量
JSONObject routerParam = JSONObjectUtil.parseObject(pendingMessageRecord.getRouterParams());
msgTemplateRouter = MessageRouterUtil.parseAndConcatRouteUrl(msgTemplateRouter, routerParam);
JSONObject authParam = new JSONObject();
if (!routerParam.containsKey("ouId")) {
authParam.put("ouId", pendingMessageRecord.getOuId());
@ -393,7 +392,9 @@ public class PendingMessageNewServiceImpl implements PendingMessageNewService {
if (!routerParam.containsKey("workspaceId")) {
authParam.put("workspaceId", pendingMessageRecord.getOrgId());
}
authParam.putAll(routerParam);
msgTemplateRouter = MessageRouterUtil.parseRouteUrl(msgTemplateRouter, authParam);
msgTemplateRouter = MessageRouterUtil.parseAndConcatRouteUrl(msgTemplateRouter, routerParam);
pendingMessage.setMsgTemplateRouter(msgTemplateRouter);
// 获取模板卡片信息
List<MessageCardContentItemDTO> msgCardContentItems = messageTemplates.stream()