|
@@ -225,6 +225,7 @@ public class CompanyVoiceRoboticServiceImpl extends ServiceImpl<CompanyVoiceRobo
|
|
|
client.setRoboticId(companyVoiceRobotic.getId());
|
|
client.setRoboticId(companyVoiceRobotic.getId());
|
|
|
client.setCustomerId(Long.parseLong(e));
|
|
client.setCustomerId(Long.parseLong(e));
|
|
|
client.setIsWeCom(isWeCom);
|
|
client.setIsWeCom(isWeCom);
|
|
|
|
|
+ client.setCreateTime(new Date());
|
|
|
return client;
|
|
return client;
|
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
|
companyWxClientServiceImpl.saveBatch(clients);
|
|
companyWxClientServiceImpl.saveBatch(clients);
|
|
@@ -894,7 +895,7 @@ public class CompanyVoiceRoboticServiceImpl extends ServiceImpl<CompanyVoiceRobo
|
|
|
// redisCache2.deleteObject(EASYCALL_INTENT_RETRY_KEY + result.getUuid());
|
|
// redisCache2.deleteObject(EASYCALL_INTENT_RETRY_KEY + result.getUuid());
|
|
|
|
|
|
|
|
// dialogue(对话内容)由对方异步写入,回调时可能尚未赋值,进入延迟重试队列等待
|
|
// dialogue(对话内容)由对方异步写入,回调时可能尚未赋值,进入延迟重试队列等待
|
|
|
- if (isDialogueEmpty(callPhoneRes.getDialogue())) {
|
|
|
|
|
|
|
+ if (isDialogueEmpty(callPhoneRes.getDialogue()) && !"未接通".equals(callPhoneRes.getIntent())) {
|
|
|
String retryKey = EASYCALL_DIALOGUE_RETRY_KEY + result.getUuid();
|
|
String retryKey = EASYCALL_DIALOGUE_RETRY_KEY + result.getUuid();
|
|
|
Integer retryCount = redisCache2.getCacheObject(retryKey);
|
|
Integer retryCount = redisCache2.getCacheObject(retryKey);
|
|
|
if (retryCount == null) {
|
|
if (retryCount == null) {
|
|
@@ -936,7 +937,7 @@ public class CompanyVoiceRoboticServiceImpl extends ServiceImpl<CompanyVoiceRobo
|
|
|
log.error("easyCall dialogue重试时仍未查询到外呼结果, uuid={}", result.getUuid());
|
|
log.error("easyCall dialogue重试时仍未查询到外呼结果, uuid={}", result.getUuid());
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if (isDialogueEmpty(callPhoneRes.getDialogue())) {
|
|
|
|
|
|
|
+ if (isDialogueEmpty(callPhoneRes.getDialogue()) && !"未接通".equals(callPhoneRes.getIntent())) {
|
|
|
// dialogue 仍为空,继续判断是否还有剩余重试次数
|
|
// dialogue 仍为空,继续判断是否还有剩余重试次数
|
|
|
String retryKey = EASYCALL_DIALOGUE_RETRY_KEY + result.getUuid();
|
|
String retryKey = EASYCALL_DIALOGUE_RETRY_KEY + result.getUuid();
|
|
|
Integer retryCount = redisCache2.getCacheObject(retryKey);
|
|
Integer retryCount = redisCache2.getCacheObject(retryKey);
|