123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- <?php
- return array(
- 'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR .'..',
- 'name' => 'Teccher Console Application',
- 'charset' => 'utf-8',
- 'language' => 'zh_cn',
- 'timeZone' => 'Asia/Chongqing',
-
- 'import' => array(
- 'application.models.*',
- 'application.components.*',
- 'lib.core.*',
- 'lib.core.db.*',
- ),
-
- 'components' => array(
- 'log' => array(
- 'class' => 'CLogRouter',
- 'routes' => array(
- array(
- 'class' => 'CFileLogRoute',
- 'levels' => 'info, warning, error',
- ),
- ),
- ),
- 'cache' => array(
- 'class' => 'ext.redis.CRedisCache',
- 'servers' => array(
- array(
- //'host' => '10.19.165.180',
- 'host' => '172.16.1.56',
- 'port' => 6379,
- 'password'=>'X_7X40cF-3N'
- // 'connection_timeout'=>86400,
- ),
- ),
- ),
- 'topic_province_count' => array(
- 'class' => 'ext.redis.CRedisCache',
- 'servers' => array(
- array(
- 'host' => '172.16.1.25',
- 'port' => 6379,
- 'database' => 3,
- 'password'=>'Pq1x-oX7Jl_NmS-q19'
- ),
- ),
- ),
- //学校教材版本设置
- 'school_textbook_setting' => array (
- 'class' => 'ext.redis.CRedisCache',
- 'servers' => array (
- array (
- 'host' => '172.16.1.56',
- 'port' => 6379,
- 'database' => 7,
- 'password'=>'X_7X40cF-3N'
- ),
- ),
- ),
- //数据库配置,可配置多个数据库
- 'db' => array(
- 'connectionString' => 'mysql:host=172.16.1.20:3306;dbname=zsy_business',
- 'username' => 'zsy',
- 'password' => 'Hbt3sZNxepnZQNPU',
- 'charset' => 'utf8',
- 'emulatePrepare' => TRUE,
- ),
- // 业务数据库
- 'businessDb' => array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=172.16.1.20:3306;dbname=zsy_business',
- 'emulatePrepare' => true,
- 'schemaCachingDuration' => 84600,
- 'schemaCacheID' => 'tableCache',
- 'username' => 'zsy',
- 'password' => 'Hbt3sZNxepnZQNPU',
- 'charset' => 'utf8',
- 'enableParamLogging' => true
- ),
- // ims数据库
- 'imsDb' => array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=172.16.1.31:3306;dbname=zsy_ims',
- 'emulatePrepare' => true,
- 'schemaCachingDuration' => 84600,
- 'schemaCacheID' => 'tableCache',
- 'username' => 'zsy',
- 'password' => 'Hbt3sZNxepnZQNPU',
- 'charset' => 'utf8mb4',
- 'enableParamLogging' => true
- ),
- ),
- // application-level parameters that can be accessed
- // using Yii::app()->params['paramName']
- 'params'=>array(
- "orders_id"=>"http://zsy.zhixinhuixue.com/crm/api/id",
- "batch_orders_id"=>"http://zsy.zhixinhuixue.com/crm/api/id/batch/",
- "order_interface"=>"http://zsy.zhixinhuixue.com/crm/api/workflow/order/",
- "payment_interface"=>"http://zsy.zhixinhuixue.com/crm/api/workflow/payment/",
- "api_username"=>"zxhx",
- "api_password"=>"183971ee2455430abbc0328f15050913",
- "default_server" => array(
- "addr" => "172.16.1.20",
- "username" => "zsy",
- "password" => "Hbt3sZNxepnZQNPU",
- ),
- "default_db" => array(
- "name" => "zsy_business",
- "t_pre" => "",
- "t_servers" => "database",
- ),
- "redis" => array(
- "state" => "on",
- "expire_time" => 3600,
- "server" => array(
- 'host'=>'10.19.165.180',
- 'port'=>6379,
- ),
- ),
- "activeMq"=>array(
- 'server'=>'tcp://10.19.63.195:61613'
- ),
- //ims接口地址配置
- "ims" => array(
- "url" => "http://api.zsyims.zhixinhuixue.com/ims/",
- "sign" => "iWK77vd6mULRsCZCMbFGIXmPN1w5Ueuw",
- "sign_url" => 'zhixinhuixue.com',
- ),
- // fastdfs 配置信息
- 'fastdfs'=>array(
- 'tracker_host' => '10.19.103.150',
- 'tracker_port' => '22122',
- 'group' => '',
- ),
- 'fastdfs_images_url'=>'http://fs.zhixinhuixue.com/',
- // 默认科目Id
- 'subject_id' => 3,
- 'material_url' => 'http://zsybrain.zhixinhuixue.com/rest/textbook/tree',
- 'material_param'=> 'subjectId=3&depth=3',
- 'get_topic_url' => 'http://zsybrain.zhixinhuixue.com/rest/topic/batch', // 获取试题
- 'get_api_url' => 'http://zsyapi.zhixinhuixue.com', // api接口
- //错题本、提分方案接口地址 不同键值对应不同的业务库database表group_id
- 'improve_url' => array(
- '0' => 'http://zsyapi.zhixinhuixue.com',
- '1' => 'http://zsyapi1.zhixinhuixue.com',
- '2' => 'http://zsyapi2.zhixinhuixue.com',
- '3' => 'http://zsyapi3.zhixinhuixue.com',
- '4' => 'http://zsyapi4.zhixinhuixue.com',
- '5' => 'http://zsyapi5.zhixinhuixue.com',
- '6' => 'http://zsyapi6.zhixinhuixue.com',
- '7' => 'http://zsyapi7.zhixinhuixue.com',
- '8' => 'http://zsyapi8.zhixinhuixue.com',
- '9' => 'http://zsyapi9.zhixinhuixue.com',
- ),
- 'static_url' => array(
- '0' => 'http://zstatic.zhixinhuixue.com',
- '1' => 'http://zstatic1.zhixinhuixue.com',
- '2' => 'http://zstatic2.zhixinhuixue.com',
- '3' => 'http://zstatic3.zhixinhuixue.com',
- '4' => 'http://zstatic4.zhixinhuixue.com',
- '5' => 'http://zstatic5.zhixinhuixue.com',
- '6' => 'http://zstatic6.zhixinhuixue.com',
- '7' => 'http://zstatic7.zhixinhuixue.com',
- '8' => 'http://zstatic8.zhixinhuixue.com',
- '9' => 'http://zstatic9.zhixinhuixue.com',
- ),
- // 无需上传试卷模板类型ID
- 'no_template_id'=> array(7,8,9,108,12, 13, 14, 15,1012,1013,1014,1015,2012,2013,2014,2015),
- 'merge_topic_tpl'=>array(9,16,17,18,19),
- 'merge_topic_tpl_all'=>array(9,16,17,18,19,1016,1017,1018,1019,2016,2017,2018,2019),
- 'merge_topic_tpl1'=>array(2012,2013,2014,2015),
- 'merge_topic_tpl2'=>array(2016,2017,2018,2019),
- 'merge_topic_tpl3'=>array(1012,1013,1014,1015),
- 'merge_topic_tpl4'=>array(1016,1017,1018,1019),
- /*"subjectId" => array(
- 3 => '数学',
- 6 => '数学',
- 8 => '物理',
- 9 => '化学',
- 10 => '生物',
- ),*/
- "subjectId" => array(
- 3 => '数学',
- 6 => '数学',
- 12 => '物理',
- 13 => '化学',
- 14 => '生物',
- ),
- //自定义模板类型ID
- "custom_tpls_ids" => array(10,1010,1011,11,1011,1009,1012,1013,1014,1015,1016,1017,1018,1019,2012,2013,2014,2015,2016,2017,2018,2019,12, 13,7, 14, 9,15,16,17,18,19),
- // 学生错题本、提分方案存放路径
- 'student_wrong_isp_path' => '/var/www/vhosts/zsy/zsyapi.zhixinhuixue.com/current/uploads/',
- // 客户端加密
- "app_salt" => "LC@5012bi",
- //学期开学前多少天内可以切换
- "semester_allow_to_change_days" => 14,
- /*
- 'week_wp' => 'http://zsyapi.zhixinhuixue.com/rest/printer/wp', //周周练
- 'week_wb' => 'http://zsyapi.zhixinhuixue.com/rest/printer/wb', //错题本
- 'week_isp' => 'http://zsyapi.zhixinhuixue.com/rest/printer/isp', //提分册
- */
- // 接口请求验证账号
- 'api_verify_username' => 'zxhx',
- 'api_verify_password' => '533166afe82356ff5bc22ae9a263fb4e',
- 'APPID'=>'wx42e7f76857003755',
- 'secret'=>'8f4f12e2a952c7d461c60204be4c159f',
- 'notification_host' => 'http://wx.zhixinhuixue.com',
- 'redis_on_off'=>1,
- 'redis_expires'=>7000,
- 'weixin_realm'=>'http://wx.zhixinhuixue.com',
- 'pay_product_info'=>'',
- // api
- 'api' => array(
- // 题库
- 0 => array(
- 'prefix' => 'http://zsybrain.zhixinhuixue.com/rest/',
- 'username' => 'zxhx',
- 'password' => '533166afe82356ff5bc22ae9a263fb4e',
- ),
- // 打印
- 1 => array(
- 'prefix' => 'http://zsyapi.zhixinhuixue.com/rest/',
- 'username' => 'zxhx',
- 'password' => '533166afe82356ff5bc22ae9a263fb4e',
- ),
- //日志
- 2=>array(
- 'prefix' => 'http://zsymonitor.zhixinhuixue.com/',
- 'username' => 'zxhx',
- 'password' => '533166afe82356ff5bc22ae9a263fb4e',
- ),
- ),
- "api_host" => "http://zsyapi.zhixinhuixue.com",
- //题库
- "topic_store" => array(
- "topic_host" => "http://zsytk.zhixinhuixue.com",
- "answer_pic_url" => "http://zsyapi.zhixinhuixue.com/answers",
- "topic_append" => "topic/batchAll",
- "topic_field" => "topicIds",
- "material_append" => "textbook/details",
- "material_field" => "textbookIds",
- "chapter_append" => "textbook/chapter",
- "chapter_field" => "chapterId",
- "module_append" => "textbook/module",
- "module_field" => "moduleId",
- ),
- "qrcode_path" => "upload/qrcodes/",
- 'mt_prefix' => 'http://mt.zhixinhuixue.net/cgi-bin/mathtex.cgi?',
- // 教师端 Url
- 'te_url' => 'http://zsyte.zhixinhuixue.com/',
- 'get_limit_url' => 'http://api.zsyims.zhixinhuixue.com/ims/service/permit', // 权限接口
- 'limit_open' => true,//是否打开权限
- 'order_open' => true,//是否打开订单入口
- 'fdfs_open' => true,//是否打开fdfs
- 'handler_log' =>0,//mongodb 记录日志
- 'ruanyun_exam_interface' =>' http://openapi.tifence.com:4588/Exam/ReceiveExamInfo',
- 'topic_type'=>array(
- 'ke'=>array(1,2,3,11),
- 'zu'=>array(5,7,17,12,13,14,15,16),
- 'xu'=>array('27')
- ),
- "phantomjs_server"=>"/opt/app/phantomjs/bin/phantomjs",//phantomjs路径
- "phantomjs_server_en" => "/opt/app/phantomjs198/bin/phantomjs",//phantomjs路径
- "html2pdf_server"=>"/usr/local/phantomjs/app/html2pdf.js",//html2pdf路径
- 'crm_api_url'=>'http://zsy.dev.xueping.com',
- 'slab_login'=>array(
- 'secret_key'=>"LC@5012bi",
- "session_expire_time" => 31536000, //session过期时间
- ),
- 'server_callback_url' => 'http://zsyte.zhixinhuixue.com/wordapi/index',
- 'coach_server_callback_url' => 'http://zsyte.zhixinhuixue.com/wordapi/coach',
- 'formula_type' => 2, // 公式转换类型 1:mathml格式 2:LaTeX格式
- 'word_analysis_url' => 'http://zmp.zhixinhuixue.net/math_parse',
- 'xbpaper_callback_url' => 'http://zsyte.zhixinhuixue.com/wordapi/xbpaper', //校本卷库word回调地址
- //zsyas2域名
- 'zsyas2_url' => 'http://zsyas2.zhixinhuixue.com',
- //数学对应科目ID
- 'mathSubjectId'=>array(3,6,51,41),
- 'zsy_api_key' => 'zhixinhuixue.comiWK77vd6mULRsCZCMbFGIXmPN1w5Ueuw',
- ),
- );
|