|
@@ -193,14 +193,14 @@ namespace Hotline.Application.Quality
|
|
|
var audioFile = string.Empty;
|
|
|
var fromNo = string.Empty;
|
|
|
DateTime? callStartTime = null;
|
|
|
- if (_appOptions.Value.GetDefaultAppScopeConfiguration().CallCenterType == AppDefaults.CallCenterType.TianRun)
|
|
|
+ if (_appOptions.Value.GetDefaultAppScopeConfiguration().CallCenterType == AppDefaults.CallCenterType.TianRun && !string.IsNullOrEmpty(order.CallId))
|
|
|
{
|
|
|
var call = await _callApplication.GetTianrunCallAsync(order.CallId, cancellationToken);
|
|
|
audioFile = call.RecordingAbsolutePath;
|
|
|
fromNo = call.CPN;
|
|
|
callStartTime = call.CreatedTime;
|
|
|
}
|
|
|
- else if (_appOptions.Value.GetDefaultAppScopeConfiguration().CallCenterType == AppDefaults.CallCenterType.XingTang)
|
|
|
+ else if (_appOptions.Value.GetDefaultAppScopeConfiguration().CallCenterType == AppDefaults.CallCenterType.XingTang && !string.IsNullOrEmpty(order.CallId))
|
|
|
{
|
|
|
var call = await _callApplication.GetCallAsync(order.CallId, cancellationToken);
|
|
|
audioFile = call.AudioFile;
|