chore(docker): 保存关键信息,与Dev分支同步
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 域名跳转配置
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user