# 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
```
