|
|
@@ -53,7 +53,7 @@ class Config extends BaseController
|
|
|
return $this->error('配置不存在');
|
|
|
}
|
|
|
$params['val'] = $exist['type'] == 'rich_text' ? json_encode($params['val']) : $params['val'];
|
|
|
-
|
|
|
+ $params['field'] = $exist['field'];
|
|
|
ConfigModel::where('id', $id)->update($params);
|
|
|
} else {
|
|
|
$params['val'] = $params['type'] == 'rich_text' ? json_encode($params['val']) : $params['val'];
|