REQ-2010: 如果未测试IM账号, 返回对应的错误信息

This commit is contained in:
yanglin 2024-02-28 14:45:10 +08:00
parent 5db9681d03
commit a7a52c6f31
2 changed files with 3 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}