Req-3117 添加日志
This commit is contained in:
parent
362ca9a14e
commit
0956232a6c
@ -26,6 +26,7 @@ import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
@ -165,6 +166,17 @@ public class DingDingNewSdkManger {
|
||||
try {
|
||||
OrgGroupSendResponse response = dingTalkRobotClient.orgGroupSendWithOptions(orgGroupSendRequest, orgGroupSendHeaders, new com.aliyun.teautil.models.RuntimeOptions());
|
||||
log.info("sendGroupMessage, response={}", JSON.toJSONString(response));
|
||||
if (Objects.isNull(response) || Objects.isNull(response.getBody())) {
|
||||
log.error("sendGroupMessage orgGroupSendWithOptions return error, response={}",
|
||||
response);
|
||||
return;
|
||||
}
|
||||
String processQueryKey = response.getBody().getProcessQueryKey();
|
||||
log.info("发送钉钉群消息 返回消息 ID:{}", processQueryKey);
|
||||
} catch (TeaException e) {
|
||||
log.error("sendGroupMessage orgGroupSendWithOptions throw TeaException, errCode={}, " +
|
||||
"errorMessage={}", e.getCode(), e.getMessage(), e);
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
log.error("sendGroupMessage error", e);
|
||||
throw Throws.bizDefaultException();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user