02.2. 项目配置

<?php
//域名默认加载页
$domain = array(
    'def' => '/ui/fox.html',
    'sea.v.cnbbx.com' => '/sea',
    'bbz.v.cnbbx.com' => '/sea');
return array(
    //debug模式
    'debug' => true,
    //机构员工工号前缀
    'jobnum' => "QH",
    //黑名单检测接口
    'blackUrl' => "http://127.0.0.1/blacklist/userLeave/getblack",
    //上传的文件是否保存到数据库
    'fileSave2Db' => true, 
    //上传的文件跳过
    'fileSkip' => "/exam,/wechat,/study", 
    //域名影射到控制器的配置
    'domain' => $domain,
    'mysql' => array(
        //默认使用链接
        'use' => 'dev',
        //为app指定数据库链接,优先级别高于use
        'app' => array(
            'a9' => 'a9',
            'crm' => 'dev2',
            'oa' => 'dev2'
        ),
        //为app指定数据库名称
        'database' => array(
            'pxm' => '',
            'app' => 'app',
            'fox' => 'fox',
            'a9' => 'S60623',
        ),
        'wechat' => array('ip' => '192.168.*.*', 'user' => 'root', 'pwd' => '******', 'db' => 'xwechat'),
        'blacklist' => array('ip' => '192.168.*.*', 'user' => 'root', 'pwd' => '******', 'db' => 'blacklist'),
        'study' => array('ip' => '192.168.*.*', 'user' => 'root', 'pwd' => '******', 'db' => 'study'),
        'exam' => array('ip' => '192.168.*.*', 'user' => 'root', 'pwd' => '******'),
        //呼叫中心
        'call145' => array('ip' => '192.168.*.*', 'port' => '3306', 'user' => 'op', 'pwd' => '8888', 'db' => 'db_atcti'),
        #cti中心数据库及本机数据库配置
        'foxCtiCenter' => array('ip' => '192.168.*.*', 'user' => 'root', 'pwd' => '******', 'db' => 'cti'),
        'foxCtiMe' => array('ip' => '192.168.*.*', 'user' => 'root', 'pwd' => '******', 'db' => 'asterisk'),
    ),
    'redis' => array(
        'use' =>  'srv',
        'srv' => array('ip' => '192.168.*.*', 'port' => '6379', 'auth' => '')
    ),
    //微服务管理中心的ip地址 可以配置多个
    'appman' => array('http://192.168.*.*:8888'),
    //微服务的地址配置
    'mics' => array(//127.0.0.1 不要配置这个  不然不会调用你本地配置
    ),
);