修改原有框架中英文映射

This commit is contained in:
2026-03-17 18:09:10 +08:00
parent e7b8f4cae9
commit bdf50e61f5
81 changed files with 1956 additions and 735 deletions

View File

@@ -57,7 +57,7 @@ class CodeZip
$zipName = $config['generate_path'].'.zip';
$dirPath = $config['generate_path'];
if ($zipArc->open($zipName, \ZipArchive::OVERWRITE | \ZipArchive::CREATE) !== true) {
throw new ApiException('无法打开文件,或者文件创建失败');
throw new ApiException('Cannot open file or create file failed');
}
$this->addFileToZip($dirPath, $zipArc);
$zipArc->close();
@@ -158,7 +158,7 @@ class CodeZip
@readfile($fileName);
@unlink($fileName);
} catch (\Throwable $th) {
throw new ApiException('系统生成文件错误');
throw new ApiException('System file generation error');
}
}
}