提交 dec68dc6 编写于 作者: nancy's avatar nancy

bug fixed

上级 3a86dab3
...@@ -512,6 +512,9 @@ public class NotifyCoreService { ...@@ -512,6 +512,9 @@ public class NotifyCoreService {
throw new BadRequestAlertException(String.format("发送链接消息失败,无法获取到[%s]对应的rt模板",msg.getTemplateid()),"",""); throw new BadRequestAlertException(String.format("发送链接消息失败,无法获取到[%s]对应的rt模板",msg.getTemplateid()),"","");
} }
MsgOpenAccess openAccess =template.getOpenaccess(); MsgOpenAccess openAccess =template.getOpenaccess();
if (openAccess == null){
openAccess = openAccessService.get(template.getAccessId());
}
OapiMessageCorpconversationAsyncsendV2Request req = new OapiMessageCorpconversationAsyncsendV2Request(); OapiMessageCorpconversationAsyncsendV2Request req = new OapiMessageCorpconversationAsyncsendV2Request();
req.setAgentId(Long.parseLong(template.getTemplateId())); req.setAgentId(Long.parseLong(template.getTemplateId()));
req.setUseridList(authUserId); req.setUseridList(authUserId);
...@@ -541,6 +544,9 @@ public class NotifyCoreService { ...@@ -541,6 +544,9 @@ public class NotifyCoreService {
throw new BadRequestAlertException(String.format("创建待办失败,无法获取到[%s]对应的rt模板",msg.getTemplateid()),"",""); throw new BadRequestAlertException(String.format("创建待办失败,无法获取到[%s]对应的rt模板",msg.getTemplateid()),"","");
} }
MsgOpenAccess openAccess =template.getOpenaccess(); MsgOpenAccess openAccess =template.getOpenaccess();
if (openAccess == null){
openAccess = openAccessService.get(template.getAccessId());
}
notifyCoreService.createWorkRecordByUserIds(authUserId,msg,template,openAccess); notifyCoreService.createWorkRecordByUserIds(authUserId,msg,template,openAccess);
return true; return true;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册