Bladeren bron

IVR文件上传

zhengbingbing 8 jaren geleden
bovenliggende
commit
5cc254efdd

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

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

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

@@ -378,8 +378,9 @@ namespace CallCenterApi.Interface.Controllers
378 378
                 }
379 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 384
                 _upFile.SaveAs(physicalpath);
384 385
                 #endregion
385 386