Pre Merge pull request !420 from 战场原礼亚/hotfix/curd_rmdir_error

pull/420/MERGE
战场原礼亚 2025-06-26 09:09:02 +00:00 committed by Gitee
commit 915140b1c7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 1 deletions

View File

@ -1312,6 +1312,7 @@ EOD;
$iterator = new \FilesystemIterator($parentDir);
$isDirEmpty = !$iterator->valid();
if ($isDirEmpty) {
unset($iterator);
rmdir($parentDir);
$parentDir = dirname($parentDir);
} else {
@ -1607,7 +1608,7 @@ EOD;
$inputType = 'datetime';
}
// 指定后缀结尾且类型为enum,说明是个单选框
if ($this->isMatchSuffix($fieldsName, $this->enumRadioSuffix) && $v['DATA_TYPE'] == 'enum') {
if ($this->isMatchSuffix($fieldsName, $this->enumRadioSuffix) && $v['DATA_TYPE'] == 'enum' || $v['DATA_TYPE'] == 'smallint') {
$inputType = "radio";
}
// 指定后缀结尾且类型为set,说明是个复选框