修改数据类型

This commit is contained in:
liaofei 2023-04-24 19:27:53 +08:00
parent c8fcac91b0
commit 2ae341ff24

View File

@ -78,6 +78,9 @@ class Service extends Make
if (in_array($item['type'], ['checkbox'])) {
$valueContent = '[]';
$input = '(array)(' . $input . $valueContent . ')';
} else if ($item['type'] == 'radio') {
$valueContent = '-1';
$input = '(int)(' . $input . $valueContent . ')';
} else {
$input = $input . $valueContent;
}