Commit f13b28fa authored by 周亚武's avatar 周亚武

钉钉相关接口

parent 4ab7b745
...@@ -121,10 +121,10 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID ...@@ -121,10 +121,10 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
public com.aliyun.dingtalkworkflow_1_0.Client createClient() throws Exception { public com.aliyun.dingtalkworkflow_1_0.Client createClient() throws Exception {
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 = "https"; //config.protocol = "https";
config.protocol = "https"; config.protocol = "http";
config.regionId = "central"; config.regionId = "central";
//config.endpoint = domain.replace("http://", ""); // config.endpoint = domain.replace("http://", "");
//config.endpoint = oaUrl; config.endpoint = oaUrl;
return new com.aliyun.dingtalkworkflow_1_0.Client(config); return new com.aliyun.dingtalkworkflow_1_0.Client(config);
} }
...@@ -136,9 +136,9 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID ...@@ -136,9 +136,9 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
getProcessInstanceHeaders.xAcsDingtalkAccessToken = getToken(); getProcessInstanceHeaders.xAcsDingtalkAccessToken = getToken();
HashMap<String, String> map = new HashMap<>(); HashMap<String, String> map = new HashMap<>();
getProcessInstanceHeaders.setCommonHeaders(map); getProcessInstanceHeaders.setCommonHeaders(map);
getProcessInstanceHeaders.getCommonHeaders().put("host", "172.15.28.113"); getProcessInstanceHeaders.getCommonHeaders().put("host", "172.15.28.113:8919");
getProcessInstanceHeaders.getCommonHeaders().put("port", "8919"); // getProcessInstanceHeaders.getCommonHeaders().put("port", "8919");
getProcessInstanceHeaders.getCommonHeaders().put("protocol", "http"); // getProcessInstanceHeaders.getCommonHeaders().put("protocol", "http");
com.aliyun.dingtalkworkflow_1_0.models.GetProcessInstanceRequest getProcessInstanceRequest = new com.aliyun.dingtalkworkflow_1_0.models.GetProcessInstanceRequest() com.aliyun.dingtalkworkflow_1_0.models.GetProcessInstanceRequest getProcessInstanceRequest = new com.aliyun.dingtalkworkflow_1_0.models.GetProcessInstanceRequest()
.setProcessInstanceId(processInstanceId); .setProcessInstanceId(processInstanceId);
......
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