|
@@ -96,11 +96,15 @@ namespace CallCenter.Application.Handlers
|
|
|
{
|
|
|
//跳转IVR
|
|
|
case ECorrectIvr.Ivr:
|
|
|
- _logger.LogInformation("transfer to ivr.no: {ivrNo}", correct.ReturnValue);
|
|
|
+ var ivrList = _ivrCacheManager.GetIvrs();
|
|
|
+ var ivr = ivrList.First(x => x.IvrCategoryId == correct.ReturnValue && x.IsRoot);
|
|
|
+
|
|
|
+ _logger.LogInformation("transfer to ivr.no: {ivrNo}", ivr.No);
|
|
|
+
|
|
|
await _newRockClient.VisitorToMenu(new VisitorToMenuRequest()
|
|
|
{
|
|
|
Attribute = "Connect",
|
|
|
- Menu = new VisitorToMenuMenu() { Id = correct.ReturnValue },
|
|
|
+ Menu = new VisitorToMenuMenu() { Id = ivr.No },
|
|
|
Visitor = new VisitorToMenuVisitor() { Id = notification.Visitor.Id }
|
|
|
},
|
|
|
_options.Value.ReceiveKey, _options.Value.Expired, cancellationToken);
|