Commit 78c85d36 authored by 赵啸非's avatar 赵啸非

添加用户钉钉主动拉取请假记录

parent 1066b2ec
...@@ -189,7 +189,8 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID ...@@ -189,7 +189,8 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
*/ */
public com.aliyun.teaopenapi.models.Config setConfig() { public com.aliyun.teaopenapi.models.Config setConfig() {
com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config(); com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config();
config.protocol = "http"; // config.protocol = "http";
config.protocol = "https";
config.regionId = "central"; config.regionId = "central";
config.endpoint = oaUrl; config.endpoint = oaUrl;
return config; return config;
...@@ -223,6 +224,7 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID ...@@ -223,6 +224,7 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
HashMap<String, String> map = new HashMap<>(); HashMap<String, String> map = new HashMap<>();
listProcessInstanceIdsHeaders.setCommonHeaders(map); listProcessInstanceIdsHeaders.setCommonHeaders(map);
if(!ObjectUtils.isEmpty(oaUrl)){ if(!ObjectUtils.isEmpty(oaUrl)){
listProcessInstanceIdsHeaders.getCommonHeaders().put("host", oaUrl); listProcessInstanceIdsHeaders.getCommonHeaders().put("host", oaUrl);
} }
// listProcessInstanceIdsHeaders.getCommonHeaders().put("host", "172.15.28.113:8919"); // listProcessInstanceIdsHeaders.getCommonHeaders().put("host", "172.15.28.113:8919");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment