|
|
@@ -19,16 +19,27 @@ namespace HySoft.BaseCallCenter.Web.telmanage
|
|
19
|
19
|
try
|
|
20
|
20
|
{
|
|
21
|
21
|
BLL.T_Sys_SystemConfig bll_T_Sys_SystemConfig = new BLL.T_Sys_SystemConfig();
|
|
22
|
|
- string CTIserverIP = bll_T_Sys_SystemConfig.GetParamValueByParamCode("PlayPath");//CTIIP
|
|
23
|
|
-
|
|
24
|
|
- string path= Request.QueryString["path"];
|
|
25
|
|
- if (path.IndexOf(":") < 0)
|
|
|
22
|
+ string type = Request.QueryString["type"];
|
|
|
23
|
+ string path = Request.QueryString["path"];
|
|
|
24
|
+ if (type == "1")
|
|
26
|
25
|
{
|
|
|
26
|
+ string CTIserverIP = bll_T_Sys_SystemConfig.GetParamValueByParamCode("PlayLeaveVoice");//CTIIP
|
|
27
|
27
|
res = CTIserverIP + path;
|
|
28
|
28
|
}
|
|
29
|
29
|
else
|
|
30
|
30
|
{
|
|
31
|
|
- res = path.Replace("D:", CTIserverIP);
|
|
|
31
|
+ string CTIserverIP = bll_T_Sys_SystemConfig.GetParamValueByParamCode("PlayPath");//CTIIP
|
|
|
32
|
+
|
|
|
33
|
+
|
|
|
34
|
+ if (path.IndexOf(":") < 0)
|
|
|
35
|
+ {
|
|
|
36
|
+ res = CTIserverIP + path;
|
|
|
37
|
+ }
|
|
|
38
|
+ else
|
|
|
39
|
+ {
|
|
|
40
|
+ res = CTIserverIP + path.Substring(path.IndexOf(":")+1);
|
|
|
41
|
+ //res = path.Replace("E:", CTIserverIP);
|
|
|
42
|
+ }
|
|
32
|
43
|
}
|
|
33
|
44
|
res = HttpUtility.HtmlEncode(res);
|
|
34
|
45
|
}
|