feat: config

This commit is contained in:
2025-01-17 16:16:07 +08:00
parent 17c8276322
commit 140df31a71
2 changed files with 16 additions and 2 deletions

View File

@@ -64,10 +64,12 @@ class ConfigService extends BaseService
*/
public function getConfigForm(): array
{
$list = $this->configModel->getConfigByPid($this->request->input('pid'));
$pid = (int)$this->request->input('pid');
$list = $this->configModel->getConfigByPid($pid);
foreach ($list as &$item) {
switch ($item['type']) {
switch ($item['input_type']) {
case 2:
$data = explode('|', $item['value']);
$item['min'] = (int)$data[0];