修改原有框架中英文映射
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user