This commit is contained in:
2025-11-22 15:31:01 +08:00
parent 9f25a85d07
commit b52a51c09b
37 changed files with 2587 additions and 240 deletions
@@ -143,9 +143,9 @@ class ConfigController extends Base
$post = $request->post('row');
Db::startTrans();
try {
if($post['type'] == 'selects'){
$post['value'] = implode(',',$post['value']);
}
// if($post['type'] == 'selects'){
// $post['value'] = implode(',',$post['value']);
// }
$user = ConfigModel::create($post);
Db::commit();
$this->buildcache();
@@ -165,7 +165,7 @@ class ConfigController extends Base
$v['value'] = json_decode($v['value'], true);
}
if(in_array($v['type'] ,['selects']) && !is_array($v['value'])){
$v['value'] = explode(',',$v['value']);
$v['value'] = explode(',',$v['value']??'');
}
$list[$v['name']] = $v['value'];
}