Commit 4cdc8ee9 authored by 赵啸非's avatar 赵啸非

添加线程发送钉钉申诉

parent 6d651292
...@@ -100,6 +100,7 @@ public abstract class AbstractDingTalkService implements IDingPersonService { ...@@ -100,6 +100,7 @@ public abstract class AbstractDingTalkService implements IDingPersonService {
throw new AppException(String.format("code:{},errorMsg:{}", rsp.getErrcode(), rsp.getErrmsg())); throw new AppException(String.format("code:{},errorMsg:{}", rsp.getErrcode(), rsp.getErrmsg()));
} }
} else { } else {
log.info("redis dingding token:{}",dingToken);
return dingToken; return dingToken;
} }
} catch (Exception e) { } catch (Exception e) {
......
...@@ -238,7 +238,10 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID ...@@ -238,7 +238,10 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
.setStatuses(Arrays.asList("COMPLETED")) .setStatuses(Arrays.asList("COMPLETED"))
.setUserIds(java.util.Arrays.asList(userIds)); .setUserIds(java.util.Arrays.asList(userIds));
try { try {
ListProcessInstanceIdsResponse rsp = client.listProcessInstanceIdsWithOptions(listProcessInstanceIdsRequest, listProcessInstanceIdsHeaders, new RuntimeOptions()); RuntimeOptions runtimeOptions = new RuntimeOptions();
runtimeOptions.setReadTimeout(60);
runtimeOptions.setConnectTimeout(60);
ListProcessInstanceIdsResponse rsp = client.listProcessInstanceIdsWithOptions(listProcessInstanceIdsRequest, listProcessInstanceIdsHeaders, runtimeOptions);
if (rsp.getBody().getSuccess()) { if (rsp.getBody().getSuccess()) {
return Rest.ok(rsp.getBody().getResult()); return Rest.ok(rsp.getBody().getResult());
......
...@@ -110,7 +110,7 @@ Content-Type: application/json ...@@ -110,7 +110,7 @@ Content-Type: application/json
{ {
"startTimeStart":"2024-03-04", "startTimeStart":"2024-03-04",
"endTimeEnd":"2024-03-05" "endTimeEnd":"2024-03-04"
} }
......
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