chore(docker): 保存关键信息,与Dev分支同步

This commit is contained in:
2025-12-15 16:31:06 +08:00
parent 572b4c4a00
commit 157ea7f46d
6 changed files with 225 additions and 10 deletions

View File

@@ -210,6 +210,32 @@ class Config extends BaseShop
}
/**
* 企业微信配置
*/
public function wxwork()
{
$config_model = new ConfigModel();
if (request()->isJson()) {
$data = [
'corp_id' => input('corp_id', ''),
'agent_id' => input('agent_id', ''),
'contact_id' => input('contact_id', ''),
'contact_url' => input('contact_url', ''),
'timestamp' => input('timestamp', ''),
'nonceStr' => input('nonceStr', ''),
'signature' => input('signature', ''),
'enabled' => input('enabled', 0)
];
$this->addLog('修改企业微信配置');
return $config_model->setWxworkConfig($data, $this->site_id, $this->app_module);
} else {
$config_result = $config_model->getWxworkConfig($this->site_id, $this->app_module);
$this->assign('wxwork_config', $config_result[ 'data' ][ 'value' ]);
return $this->fetch('config/wxwork');
}
}
/**
* 域名跳转配置
*/