Sfoglia il codice sorgente

录音路径的调整,同步标准版,以及一个json格式的调整

clq1010 8 anni fa
parent
commit
b0ec6ed693

+ 1 - 1
code/BaseCallCenter.Web/calloutmanage/ajax/callplanfpset.ashx.cs

@@ -211,7 +211,7 @@ namespace HySoft.BaseCallCenter.Web.calloutmanage.ajax
211 211
                 dt.Clear();
212 212
                 dt.Dispose();
213 213
             }
214
-            return "{msg:" + type + ",info:\"" + res + "\"}";
214
+            return "{\"msg\":\"" + type + "\",\"info\":\"" + res + "\"}";
215 215
         }
216 216
 
217 217
         private string getuserlist(HttpContext context)

+ 16 - 5
code/BaseCallCenter.Web/telmanage/voiceplay.aspx.cs

@@ -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
             }