# BS的檢前本地化部署配置
## 1. 微信公眾號服務器白名單配置
> 根據告警消息提示的服務器ip,配置到微信公眾號服務器白名單即可
## 2. 檢前系統API配置
system\config\config.php
```
// 袋鼠檢前系統
$config['daishu_pre_exam_api'] = [
'src'=>'1008',// 應用id
'sign_secret'=>'sad102dlnlkf01u04',// 應用秘鑰
'host'=>'{{host}}/website/openapi/',
];
```
## 3. 登錄授權配置
wwwroot\smarthealthfront\config\config.php
```
// 移動端授權方式
$config['auth_way'] = 'pre_exam_sys'; // wx:微信授權(默認) pre_exam_sys:檢前系統
$config['pre_exam_sys_auth_url'] = '{{host}}/apps/wechat/home/get_user_info'; // 檢前授權地址
```
## 4. 微信代理 access_token 配置
system\config\config.php
```
// 微信token代理地址:1不設置則本機獲取 2代理地址其他分院的前置機接口地址 例:{host}/smarthealthfront/interior/get_wx_token
$config['wx_token_agent_url'] = '{{host}}/apps/wechat/home/get_access_token';
```
## 5.定時任務
```
檢前系統同步
* * * * * curl {host}/manager/crontabapi/SyncCrontab/sync_package_and_union > /dev/null
```