duhongyu 6 years ago
parent
commit
1840cd9f5c

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerNewController.cs

@@ -459,7 +459,7 @@ namespace CallCenterApi.Interface.Controllers.customer
459 459
                     string datepath = DateTime.Now.ToString("yyyyMMddHHMMss");
460 460
                     string aLastName = Path.GetExtension(_upFile.FileName);
461 461
                     string oriname = Path.GetFileNameWithoutExtension(_upFile.FileName);
462
-                    if (aLastName != "xls" && aLastName != "xlsx")
462
+                    if (aLastName != ".xls" && aLastName != ".xlsx")
463 463
                     {
464 464
                         return Error("文件类型错误,请选择Excel文件");
465 465
                     }

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/RegionCategoryController.cs

@@ -64,7 +64,7 @@ namespace CallCenterApi.Interface.Controllers.customer
64 64
                 string datepath = DateTime.Now.ToString("yyyyMMddHHMMss");
65 65
                 string aLastName = Path.GetExtension(_upFile.FileName);
66 66
                 string oriname = Path.GetFileNameWithoutExtension(_upFile.FileName);
67
-                if (aLastName != "xls" && aLastName != "xlsx")
67
+                if (aLastName != ".xls" && aLastName != ".xlsx")
68 68
                 {
69 69
                     return Error("文件类型错误,请选择Excel文件");
70 70
                 }