|
|
@@ -105,6 +105,16 @@ namespace CallCenterApi.Interface.Controllers
|
|
105
|
105
|
true,
|
|
106
|
106
|
out recordCount);
|
|
107
|
107
|
|
|
|
108
|
+ var config = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='IVRWavPath' ").FirstOrDefault();
|
|
|
109
|
+ foreach (DataRow dr in dt.Rows)
|
|
|
110
|
+ {
|
|
|
111
|
+ string path = dr["F_WavNewName"] != null ? dr["F_WavNewName"].ToString() : "";
|
|
|
112
|
+ if (path != "" && config != null && !string.IsNullOrEmpty(config.F_ParamValue))
|
|
|
113
|
+ {
|
|
|
114
|
+ dr["F_WavPath"] = config.F_ParamValue + dr["F_WavNewName"].ToString();
|
|
|
115
|
+ }
|
|
|
116
|
+ }
|
|
|
117
|
+
|
|
108
|
118
|
var obj = new
|
|
109
|
119
|
{
|
|
110
|
120
|
state = "success",
|
|
|
@@ -124,6 +134,13 @@ namespace CallCenterApi.Interface.Controllers
|
|
124
|
134
|
{
|
|
125
|
135
|
|
|
126
|
136
|
Model.T_Sys_IVRWords dModel = dBLL.GetModel(int.Parse(id.Trim()));
|
|
|
137
|
+ var config = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='IVRWavPath' ").FirstOrDefault();
|
|
|
138
|
+
|
|
|
139
|
+ if (dModel.F_WavNewName != "" && config != null && !string.IsNullOrEmpty(config.F_ParamValue))
|
|
|
140
|
+ {
|
|
|
141
|
+ dModel.F_WavPath = config.F_ParamValue + dModel.F_WavNewName;
|
|
|
142
|
+ }
|
|
|
143
|
+
|
|
127
|
144
|
if (dModel != null)
|
|
128
|
145
|
{
|
|
129
|
146
|
return Success("获取IVR欢迎词成功", dModel);
|
|
|
@@ -343,7 +360,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
343
|
360
|
}
|
|
344
|
361
|
|
|
345
|
362
|
//上传音频文件,并修改为系统需要的格式
|
|
346
|
|
- private ActionResult UploadWav()
|
|
|
363
|
+ public ActionResult UploadWav()
|
|
347
|
364
|
{
|
|
348
|
365
|
HttpPostedFile _upFile = RequestString.GetFile("upFile");
|
|
349
|
366
|
if (_upFile != null)
|