|
|
@@ -27,12 +27,16 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.CallCenter
|
|
27
|
27
|
private readonly ISys_MobileDataRepository busMobileDataRepository;
|
|
28
|
28
|
private readonly ICall_CallRecordsRepository busCallRecordsRepository;
|
|
29
|
29
|
private readonly ICDRRepository busCdrRepository;
|
|
30
|
|
- public CallFunctionController(ICDRRepository _busCdrRepository,ICall_CallRecordsRepository _busCallRecordsRepository,IConfiguration _configuration, ISys_MobileDataRepository _busMobileDataRepository)
|
|
|
30
|
+ private readonly ISys_SystemConfigRepository busSystemConfigRepository;
|
|
|
31
|
+
|
|
|
32
|
+ public CallFunctionController(ISys_SystemConfigRepository _busSystemConfigRepository,ICDRRepository _busCdrRepository,ICall_CallRecordsRepository _busCallRecordsRepository,IConfiguration _configuration, ISys_MobileDataRepository _busMobileDataRepository)
|
|
31
|
33
|
{
|
|
|
34
|
+ busSystemConfigRepository = _busSystemConfigRepository;
|
|
32
|
35
|
busCdrRepository = _busCdrRepository;
|
|
33
|
36
|
busCallRecordsRepository = _busCallRecordsRepository;
|
|
34
|
37
|
config = _configuration;
|
|
35
|
38
|
busMobileDataRepository = _busMobileDataRepository;
|
|
|
39
|
+
|
|
36
|
40
|
}
|
|
37
|
41
|
|
|
38
|
42
|
/// <summary>
|
|
|
@@ -129,7 +133,12 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.CallCenter
|
|
129
|
133
|
int n1 = 0;
|
|
130
|
134
|
if (modellist != null && modellist.Count > 0)
|
|
131
|
135
|
{
|
|
132
|
|
-
|
|
|
136
|
+ string url = "请配置videoURL/";
|
|
|
137
|
+ T_Sys_SystemConfig model =await busSystemConfigRepository.GetSingle(q=>q.F_ParamCode== "videoURL");
|
|
|
138
|
+ if (model != null)
|
|
|
139
|
+ {
|
|
|
140
|
+ url = model.F_ParamValue;
|
|
|
141
|
+ }
|
|
133
|
142
|
totle = modellist.Count;
|
|
134
|
143
|
List<T_Call_CallRecords> modelRecordList = new List<T_Call_CallRecords>();
|
|
135
|
144
|
foreach (cdr modelcdr in modellist)
|
|
|
@@ -153,10 +162,10 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.CallCenter
|
|
153
|
162
|
modelRecord.MYD = modelcdr.myd;
|
|
154
|
163
|
modelRecord.Remark = modelcdr.note;
|
|
155
|
164
|
modelRecord.OperateType = modelcdr.op_type;
|
|
156
|
|
- modelRecord.FilePath = modelcdr.record_path;
|
|
|
165
|
+ modelRecord.FilePath = url+ modelcdr.record_path;
|
|
157
|
166
|
if (string.IsNullOrEmpty(modelcdr.record_path) && !string.IsNullOrEmpty(modelcdr.leave_path))
|
|
158
|
167
|
{
|
|
159
|
|
- modelRecord.FilePath = modelcdr.leave_path;
|
|
|
168
|
+ modelRecord.FilePath = url+ modelcdr.leave_path;
|
|
160
|
169
|
}
|
|
161
|
170
|
modelRecord.RingStartTime = modelcdr.ring_time;
|
|
162
|
171
|
modelRecord.RelayNumber = modelcdr.trunk_num;
|