Explorar el Código

Merge branch 'master' of http://192.168.1.222:3000/zhengbingbing/XinXiangXLX_API

zhengbingbing %!s(int64=6) %!d(string=hace) años
padre
commit
97dbf11892

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

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

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

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