Uat_Study
hang 2023-06-29 17:44:56 +08:00
parent 631afde7b6
commit da44e67d65
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ namespace IRaCIS.Core.Application.Helper
private static void VerifyFolder() private static void VerifyFolder()
{ {
if (!Directory.Exists(JsonFileFolder) || if (!Directory.Exists(JsonFileFolder) ||
Directory.GetFiles(JsonFileFolder).Any(filePath => Path.GetExtension(filePath).Equals(".json", StringComparison.OrdinalIgnoreCase))) !Directory.GetFiles(JsonFileFolder).Any(filePath => Path.GetExtension(filePath).Equals(".json", StringComparison.OrdinalIgnoreCase)))
{ {
throw new BusinessValidationFailedException("国际化Json文件目录有误"); throw new BusinessValidationFailedException("国际化Json文件目录有误");
} }