|
@@ -4320,7 +4320,20 @@ class Database
|
|
|
$update[0]['add_id'] = $this->id;
|
|
|
}
|
|
|
//print_r($update);die;
|
|
|
+ $fast = Dever::input('fast');
|
|
|
foreach ($update as $k => $v) {
|
|
|
+ if (!$fast && isset($config['manage']['update_check'])) {
|
|
|
+ $update_check = explode(',', $config['manage']['update_check']);
|
|
|
+ foreach ($update_check as $k1 => $v1) {
|
|
|
+ if (strstr($v1, '-')) {
|
|
|
+ $t = explode('-', $v1);
|
|
|
+ $k1 = $t[0] . '/' . $t[1];
|
|
|
+ }
|
|
|
+ if (isset($config['struct'][$v1]) && !isset($update_id[$k][$k1])) {
|
|
|
+ Dever::alert($config['struct'][$v1]['name'] . '不能为空');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
$method = 'insert';
|
|
|
$old = array();
|
|
|
if (isset($v['where_id']) && $v['where_id']) {
|