|
@@ -4811,7 +4811,7 @@ class Database
|
|
|
if (isset($config['struct'][$v1])) {
|
|
|
if (strstr($v1, '/') && !isset($update_id[$k][$v1])) {
|
|
|
Dever::alert($config['struct'][$v1]['name'] . '不能为空');
|
|
|
- } elseif (!isset($v[$v1])) {
|
|
|
+ } elseif (isset($v['add_' . $v1]) && is_string($v['add_' . $v1]) && (!$v['add_' . $v1] || $v['add_' . $v1] == 'null')) {
|
|
|
Dever::alert($config['struct'][$v1]['name'] . '不能为空');
|
|
|
}
|
|
|
}
|
|
@@ -4827,7 +4827,7 @@ class Database
|
|
|
if (isset($config['struct'][$v1])) {
|
|
|
if (strstr($v1, '/') && !isset($update_id[$k][$v1])) {
|
|
|
Dever::alert($config['struct'][$v1]['name'] . '不能为空');
|
|
|
- } elseif (!isset($v[$v1])) {
|
|
|
+ } elseif (isset($v['set_' . $v1]) && is_string($v['set_' . $v1]) && (!$v['set_' . $v1] || $v['set_' . $v1] == 'null')) {
|
|
|
Dever::alert($config['struct'][$v1]['name'] . '不能为空');
|
|
|
}
|
|
|
}
|