|
|
@@ -796,6 +796,7 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
|
|
|
.eq(CorpWelcomeTemplate::getType, 0)
|
|
|
.eq(CorpWelcomeTemplate::getDeleted, 1)
|
|
|
.last("limit 1"));
|
|
|
+ log.info("===========未找到自然流量默认欢迎语===========");
|
|
|
if (corpWelcomeTemplate != null) {
|
|
|
senCorpWelcomeMsg(message, corpWelcomeTemplate.getText(), corpWelcomeTemplate.getAttachmentsStr());
|
|
|
}
|
|
|
@@ -1077,10 +1078,10 @@ public class CorpEventActionServiceImpl implements CorpEventActionService {
|
|
|
String welcomeContent = corpWelcomeTemplate.getText();
|
|
|
String attachmentsStr = corpWelcomeTemplate.getAttachmentsStr();
|
|
|
//发送对应欢迎语
|
|
|
- if (StrUtil.isNotBlank(welcomeContent) && StrUtil.isNotBlank(attachmentsStr)) {
|
|
|
+ if (StrUtil.isNotBlank(welcomeContent) || StrUtil.isNotBlank(attachmentsStr)) {
|
|
|
THREAD_POOL.execute(() -> {
|
|
|
- message.setWelcomeCode(null);
|
|
|
senCorpWelcomeMsg(message, welcomeContent, attachmentsStr);
|
|
|
+ message.setWelcomeCode(null);
|
|
|
});
|
|
|
}
|
|
|
}
|