使用富文本编辑器实现用户协议编辑功能

This commit is contained in:
augushong
2020-03-18 16:11:51 +08:00
parent 6647f2f669
commit d26aec260f
5 changed files with 201 additions and 0 deletions

View File

@@ -28,6 +28,11 @@ class System extends Common
return View::fetch();
}
public function agreement()
{
return View::fetch();
}
public function update()
{
@@ -41,6 +46,11 @@ class System extends Common
$list = SystemConfig::column('value','name');
foreach ($post_data as $key => $value) {
if(!is_string($value)){
$value = serialize($value);
}
if(\in_array($key,$upload_files_config)){
$old_save_name = get_system_config($key);
AppUploadFiles::use($value);