REQ-2010: 如果未测试IM账号, 返回对应的错误信息
This commit is contained in:
parent
5db9681d03
commit
a7a52c6f31
@ -37,9 +37,6 @@ public class XxlJobConfig {
|
||||
@Value("${xxl.job.executor.logPath:}")
|
||||
private String logPath;
|
||||
|
||||
@Value("${xxl.job.executor.logRetentionDays}")
|
||||
private int logRetentionDays;
|
||||
|
||||
@Bean
|
||||
@NonLocalEnvironment
|
||||
public XxlJobSpringExecutor xxlJobExecutor() {
|
||||
@ -51,7 +48,7 @@ public class XxlJobConfig {
|
||||
xxlJobSpringExecutor.setPort(port);
|
||||
xxlJobSpringExecutor.setAccessToken(accessToken);
|
||||
xxlJobSpringExecutor.setLogPath(logPath);
|
||||
xxlJobSpringExecutor.setLogRetentionDays(logRetentionDays);
|
||||
xxlJobSpringExecutor.setLogRetentionDays(7);
|
||||
return xxlJobSpringExecutor;
|
||||
}
|
||||
|
||||
|
||||
@ -225,7 +225,7 @@ public class MessageService {
|
||||
resp.setFromImAccount(messageRequest.getFrom());
|
||||
resp.setToImAccount(messageRequest.getTo());
|
||||
resp.setPersonId(sourcePersonId);
|
||||
resp.setSendFailCause(sourcePersonId + " 未注册IM账户");
|
||||
resp.setSendFailCause("personId=" + sourcePersonId + ",未注册IM账户");
|
||||
messageDispatchRespList.add(resp);
|
||||
}
|
||||
}
|
||||
@ -320,7 +320,7 @@ public class MessageService {
|
||||
resp.setFromImAccount(messageRequest.getFrom());
|
||||
resp.setToImAccount(messageRequest.getTo());
|
||||
resp.setPersonId(personId);
|
||||
resp.setSendFailCause(personId + " 未注册IM账户");
|
||||
resp.setSendFailCause("personId=" + personId + ",未注册IM账户");
|
||||
messageDispatchRespList.add(resp);
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user