This commit is contained in:
hufangzhou
2022-02-15 17:12:01 +08:00
parent 4987c816df
commit f0ba4e7987
3 changed files with 19 additions and 0 deletions
+15
View File
@@ -300,6 +300,21 @@ class convert extends control
}
else
{
$jiraFilePath = $this->app->getTmpRoot() . 'jirafile/';
if(!is_readable($jiraFilePath) or !is_writable($jiraFilePath))
{
$response['result'] = 'fail';
$response['message'] = $this->lang->convert->jira->notReadAndWrite;
return print($this->send($response));
}
if(!file_exists($jiraFilePath . 'entities.xml'))
{
$response['result'] = 'fail';
$response['message'] = $this->lang->convert->jira->notExistEntities;
return print($this->send($response));
}
$this->convert->splitFile();
$link = $this->createLink('convert', 'mapJira2Zentao', "method=file");
}