feat: add syj promote workflow

This commit is contained in:
apple
2026-05-03 14:44:12 +08:00
parent 12c2431d4e
commit 0e07a65e3f
36 changed files with 1972 additions and 1 deletions

View File

@@ -324,6 +324,25 @@ class SystemConfigServices extends BaseServices implements ServeConfigInterface
}
}
/**
* 更新单个系统配置值
* @param string $configName
* @param mixed $value
* @return bool
*/
public function setConfig(string $configName, $value): bool
{
$config = $this->dao->getOne(['menu_name' => $configName]);
if (!$config) {
return false;
}
$config['value'] = $value;
$this->valiDateValue($config);
$this->dao->update($configName, ['value' => json_encode($value)], 'menu_name');
\crmeb\services\SystemConfigService::clear();
return true;
}
/**
* 获取配置并分页
* @param array $where