feat: add syj promote workflow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user