Commit 770ebef8 by 钟博

文件名时间处理

parent 35631822
...@@ -182,7 +182,8 @@ public ApiResponse ImportExtraction(int allotId) ...@@ -182,7 +182,8 @@ public ApiResponse ImportExtraction(int allotId)
if (allot == null) if (allot == null)
return new ApiResponse(ResponseType.Fail, "allotid不存在"); return new ApiResponse(ResponseType.Fail, "allotid不存在");
var fileName = allot.ExtractPath.Split("\\").Last().Replace(@"\d", ""); var extract = allot.ExtractPath.Split("\\").Last();
var fileName = System.Text.RegularExpressions.Regex.Replace(extract, @"\d", "");
//var file = ((FormFileCollection)allot.ExtractPath).FirstOrDefault(); //var file = ((FormFileCollection)allot.ExtractPath).FirstOrDefault();
//if (file == null) //if (file == null)
// return new ApiResponse(ResponseType.Fail, "参数错误", "文件无效"); // return new ApiResponse(ResponseType.Fail, "参数错误", "文件无效");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment