Selaa lähdekoodia

IVR文件上传

zhengbingbing 8 vuotta sitten
vanhempi
commit
5cc254efdd

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Configs/system.config

31
   <!-- 设置账户名 -->
31
   <!-- 设置账户名 -->
32
   <add key="account" value="bingbing" />
32
   <add key="account" value="bingbing" />
33
   <!-- 设置密码 -->
33
   <!-- 设置密码 -->
34
-  <add key="password" value="Hy123456" />
34
+  <add key="password" value="Bing123456" />
35
   <!-- 文件保存位置 -->
35
   <!-- 文件保存位置 -->
36
   <add key="saveloc" value="d:\upload_wav\" />
36
   <add key="saveloc" value="d:\upload_wav\" />
37
 </appSettings>
37
 </appSettings>

+ 3 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/IVRWordsController.cs

378
                 }
378
                 }
379
                 #endregion
379
                 #endregion
380
 
380
 
381
-                #region 保存原文件
382
-                string physicalpath = Server.MapPath(savedir + fullFileName);
381
+                #region 保存原文件到本地指定目录
382
+                //string physicalpath = Server.MapPath(savedir + fullFileName);
383
+                string physicalpath = savedir + "\\" + fullFileName;
383
                 _upFile.SaveAs(physicalpath);
384
                 _upFile.SaveAs(physicalpath);
384
                 #endregion
385
                 #endregion
385
 
386