|
@@ -39,7 +39,7 @@ namespace Hotline.Application.CallCenter.Calls
|
|
|
{
|
|
|
if (work.TelNo == telNo)
|
|
|
{
|
|
|
- return new TrOnDutyResponseDto() { TelNo = work.TelNo, TelPwd = work.TelPwd, Description = work.Description };
|
|
|
+ return new TrOnDutyResponseDto() { TelNo = work.TelNo, TelPwd = work.TelPwd, Description = work.Description, QueueId = work.QueueId };
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -56,16 +56,16 @@ namespace Hotline.Application.CallCenter.Calls
|
|
|
var telModel = await _trClient.QueryTelsAsync(new Tr.Sdk.Tels.QueryTelRequest() { TelNo = telNo }, cancellationToken);
|
|
|
if (telModel !=null && telModel.Count>0)
|
|
|
{
|
|
|
- work = new Work(_sessionContext.UserId, _sessionContext.UserName, telModel[0].Id, telNo, telModel[0].Password, telModel[0].Description);
|
|
|
+ work = new Work(_sessionContext.UserId, _sessionContext.UserName, telModel[0].Id, telNo, telModel[0].Password, telModel[0].Description, telModel[0].QueueId);
|
|
|
await _workRepository.AddAsync(work, cancellationToken);
|
|
|
bool IsTelNeedVerify = bool.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.IsTelNeedVerify).SettingValue[0]);
|
|
|
if (IsTelNeedVerify)
|
|
|
{
|
|
|
- return new TrOnDutyResponseDto() { TelNo = telNo, TelPwd = "", Description = telModel[0].Description };
|
|
|
+ return new TrOnDutyResponseDto() { TelNo = telNo, TelPwd = "", Description = telModel[0].Description, QueueId = telModel[0].QueueId };
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- return new TrOnDutyResponseDto() { TelNo = telNo, TelPwd = telModel[0].Password, Description = telModel[0].Description };
|
|
|
+ return new TrOnDutyResponseDto() { TelNo = telNo, TelPwd = telModel[0].Password, Description = telModel[0].Description, QueueId = telModel[0].QueueId };
|
|
|
}
|
|
|
}
|
|
|
throw UserFriendlyException.SameMessage("签入异常,未查询到对应分机信息");
|