|
@@ -433,18 +433,20 @@ public class CompanyVoiceRoboticServiceImpl extends ServiceImpl<CompanyVoiceRobo
|
|
|
wxAccount.getCompanyUserId(),
|
|
wxAccount.getCompanyUserId(),
|
|
|
temp.getTempId()
|
|
temp.getTempId()
|
|
|
);
|
|
);
|
|
|
|
|
+ addLog.setStatus(1);
|
|
|
try{
|
|
try{
|
|
|
|
|
+ int smsContentLen = getSmsContentLen(smsSendBatchParam);
|
|
|
|
|
+ addLog.setContentLen(smsContentLen);
|
|
|
sendMsgBatch(temp,smsSendBatchParam);
|
|
sendMsgBatch(temp,smsSendBatchParam);
|
|
|
- addLog.setStatus(1);
|
|
|
|
|
|
|
+ addLog.setStatus(2);
|
|
|
addLog.setCallbackUuid(callbackUuid);
|
|
addLog.setCallbackUuid(callbackUuid);
|
|
|
} catch(Exception ex){
|
|
} catch(Exception ex){
|
|
|
addLog.setStatus(3);
|
|
addLog.setStatus(3);
|
|
|
addLog.setResult(ex.getMessage());
|
|
addLog.setResult(ex.getMessage());
|
|
|
log.error("sendMsgOne异常:",ex);
|
|
log.error("sendMsgOne异常:",ex);
|
|
|
|
|
+ } finally {
|
|
|
|
|
+ companyVoiceRoboticCallLogSendmsgService.asyncInsertCompanyVoiceRoboticCallLog(addLog);
|
|
|
}
|
|
}
|
|
|
- int smsContentLen = getSmsContentLen(smsSendBatchParam);
|
|
|
|
|
- addLog.setContentLen(smsContentLen);
|
|
|
|
|
- companyVoiceRoboticCallLogSendmsgService.asyncInsertCompanyVoiceRoboticCallLog(addLog);
|
|
|
|
|
}
|
|
}
|
|
|
else{
|
|
else{
|
|
|
log.error("剩余短信数量不足,请充值:task:{},companyId:{}",roboticId,wxAccount.getCompanyId());
|
|
log.error("剩余短信数量不足,请充值:task:{},companyId:{}",roboticId,wxAccount.getCompanyId());
|