machenyang 8 years ago
parent
commit
e5a71fbced

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

380
 
380
 
381
                 #region 保存原文件到本地指定目录
381
                 #region 保存原文件到本地指定目录
382
                 //string physicalpath = Server.MapPath(savedir + fullFileName);
382
                 //string physicalpath = Server.MapPath(savedir + fullFileName);
383
-                string physicalpath = savedir + fullFileName;
384
-                //20180207 本地不再保存
383
+                //string physicalpath = savedir + fullFileName;
384
+                //20180207 本地不再保存 保存到项目中
385
                 //_upFile.SaveAs(physicalpath);
385
                 //_upFile.SaveAs(physicalpath);
386
+                string dirpath = Server.MapPath(this.Request.ApplicationPath + "\\auoupload");
387
+                if (!System.IO.Directory.Exists(dirpath))
388
+                {
389
+                    System.IO.Directory.CreateDirectory(dirpath);
390
+                }
391
+                string path = this.Request.ApplicationPath + "/auoupload/" + fullFileName;
392
+                string physicalpath = Server.MapPath(path);
393
+                _upFile.SaveAs(physicalpath);
386
                 #endregion
394
                 #endregion
387
 
395
 
388
                 #region 修改音频格式
396
                 #region 修改音频格式