123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- <?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' => '192.168.1.240',
- 'port' => 6379,
- 'database' => 0
- ),
- ),
- ),
- 'topic_province_count' => array(
- 'class' => 'ext.redis.CRedisCache',
- 'servers' => array(
- array(
- 'host' => '192.168.1.253',
- 'port' => 6379,
- 'database' => 3,
- ),
- ),
- ),
- //学校教材版本设置
- 'school_textbook_setting' => array (
- 'class' => 'ext.redis.CRedisCache',
- 'servers' => array (
- array (
- 'host' => '192.168.1.240',
- 'port' => 6379,
- 'database' => 7,
- ),
- ),
- ),
- //数据库配置,可配置多个数据库
- 'db' => array(
- //'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=192.168.1.232:3308;dbname=spider_business',
- 'username' => 'mysql_testing',
- 'password' => 'mydb_3308',
- 'charset' => 'utf8',
- 'emulatePrepare' => TRUE,
- ),
- // 业务数据库
- 'businessDb' => array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=192.168.1.232:3308;dbname=spider_business',
- 'emulatePrepare' => true,
- 'schemaCachingDuration' => 84600,
- 'schemaCacheID' => 'tableCache',
- 'username' => 'mysql_testing',
- 'password' => 'mydb_3308',
- 'charset' => 'utf8',
- 'enableParamLogging' => true
- ),
- // ims数据库
- 'imsDb' => array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=192.168.1.241:3306;dbname=zsy_ims_testing',
- 'emulatePrepare' => true,
- 'schemaCachingDuration' => 84600,
- 'schemaCacheID' => 'tableCache',
- 'username' => 'zsy',
- 'password' => 'HnTqLszKLNv6RR5b',
- 'charset' => 'utf8mb4',
- 'enableParamLogging' => true
- ),
- ),
- // application-level parameters that can be accessed
- // using Yii::app()->params['paramName']
- // 'params' => require(dirname(__FILE__) .'/params_development.php'),
- 'params'=>array(
- "batch_orders_id"=>"http://zsy.dev.xueping.com/crm/api/id/batch/",
- "order_interface"=>"http://zsy.dev.xueping.com/crm/api/workflow/order/",
- "payment_interface"=>"http://zsy.dev.xueping.com/crm/api/workflow/payment/",
- "api_username"=>"zxhx",
- "api_password"=>"183971ee2455430abbc0328f15050913",
- //默认数据库服务器
- "default_server" => array(
- "addr" => "192.168.1.232:3308",
- "username" => "mysql_testing",
- "password" => "mydb_3308",
- ),
- //默认数据库
- "default_db" => array(
- "name" => "spider_business",
- "t_pre" => "",
- "t_servers" => "database",
- ),
- "redis" => array(
- "state" => "on",
- "expire_time" => 3600,
- "server" => array(
- 'host'=>'192.168.1.240',
- 'port'=>6379,
- ),
- ),
- //ims接口地址配置
- "ims" => array(
- "url" => "http://zsy.dev.xueping.com/ims/",
- //"url" => "http://zsy.staging.xueping.com/ims/",
- // "url" => "http://192.168.1.213:8084/ims/",
- //"url" => "http://192.168.1.78:8084/ims/",
- "sign" => "kaT9ewE91itIL9FBjGgcy9RMO0rL5F0F",
- "sign_url" => 'xueping.com',
- ),
- "activeMq"=>array(
- 'server'=>'tcp://192.168.1.252:61613'
- ),
- // fastdfs 配置信息
- 'fastdfs'=>array(
- 'tracker_host' => '192.168.1.252',
- 'tracker_port' => '22122',
- 'group' => '',
- ),
- 'fastdfs_images_url'=>'http://fdfs.dev.xueping.com/',
- // 默认科目Id
- 'subject_id' => 3,
- 'material_url' => 'http://zsybrain.dev.xueping.com/rest/textbook/tree',
- 'material_param'=> 'subjectId=3&depth=3',
- //'material_url' => 'http://wybrain.xueping365.com/rest/textbook/tree',
- //'material_param'=> array('subjectId'=>3,'depth'=>3),
- 'get_topic_url' => 'http://zsybrain.zhixinhuixue.com/rest/topic/batch', // 获取试题
- 'get_api_url' => 'http://zsyapi.dev.xueping.com', // api接口
- //错题本、提分方案接口地址 不同键值对应不同的业务库database表group_id
- 'improve_url' => array(
- '0' => 'http://zsyapi.dev.xueping.com',
- '1' => 'http://zsyapi.dev.xueping.com',
- '2' => 'http://zsyapi.dev.xueping.com',
- '3' => 'http://zsyapi.dev.xueping.com',
- '4' => 'http://zsyapi.dev.xueping.com',
- '5' => 'http://zsyapi.dev.xueping.com',
- '6' => 'http://zsyapi.dev.xueping.com',
- '7' => 'http://zsyapi.dev.xueping.com',
- '8' => 'http://zsyapi.dev.xueping.com',
- '9' => 'http://zsyapi.dev.xueping.com',
- ),
- 'static_url' => array(
- '0' => 'http://zstatic.dev.xueping.com',
- '1' => 'http://zstatic.dev.xueping.com',
- '2' => 'http://zstatic.dev.xueping.com',
- '3' => 'http://zstatic.dev.xueping.com',
- '4' => 'http://zstatic.dev.xueping.com',
- '5' => 'http://zstatic.dev.xueping.com',
- '6' => 'http://zstatic.dev.xueping.com',
- '7' => 'http://zstatic.dev.xueping.com',
- '8' => 'http://zstatic.dev.xueping.com',
- '9' => 'http://zstatic.dev.xueping.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(0,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),
- //自定义模板类型ID
- "custom_tpls_ids" => array(10,1010,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),
- "subjectId" => array(
- 3 => '数学',
- 6 => '数学',
- 12 => '物理',
- 13 => '化学',
- 14 => '生物',
- ),
- // 学生错题本、提分方案存放路径
- 'student_wrong_isp_path' => '/var/www/vhosts/zsy/zsyapi.dev.xueping.com/',
- // 'student_wrong_isp_path' => 'C:/wamp/www/fengche/src/webcoach2/trunk/upload/',
- //'student_wrong_isp_path' => 'E:/spider/src/api/trunk/uploads/',
- // 接口请求验证账号
- 'api_verify_username' => 'zxhx',
- 'api_verify_password' => '533166afe82356ff5bc22ae9a263fb4e',
- 'APPID'=>'wx0438a8851241b563',
- 'secret'=>'9f2eeab974e8d51ad2f3bce247677943',
- 'notification_host' => 'http://wyprwx.zhixinhuixue.com',
- 'redis_on_off'=>1,
- 'redis_expires'=>7000,
- 'weixin_realm'=>'http://zsy.zhixinhuixue.com',
- 'pay_product_info'=>'知心慧学',
- // api
- 'api' => array(
- // 题库
- 0 => array(
- 'prefix' => 'http://zsybrain.dev.xueping.com/rest/',
- // 'prefix' => 'http://zsybrain.zhixinhuixue.com/rest/',
- 'username' => 'zxhx',
- 'password' => '533166afe82356ff5bc22ae9a263fb4e',
- ),
- // 打印
- 1 => array(
- 'prefix' => 'http://zsyapi.dev.xueping.com/rest/',
- 'username' => 'zxhx',
- 'password' => '533166afe82356ff5bc22ae9a263fb4e',
- ),
- //日志
- 2 => array(
- 'prefix' => 'http://zsymonitor.dev.xueping.com/',
- 'username' => 'zxhx',
- 'password' => '533166afe82356ff5bc22ae9a263fb4e',
- ),
- ),
- "api_host" => "http://zsyapi.dev.xueping.com",
- //题库
- "topic_store" => array(
- "topic_host" => "http://zsytk.zhixinhuixue.com",
- "answer_pic_url" => "http://answstatic.testing.xueping.com",
- "topic_append" => "topic/batch",
- "topic_field" => "topicIds",
- "material_append" => "textbook/details",
- "material_field" => "textbookIds",
- "chapter_append" => "textbook/chapter",
- "chapter_field" => "chapterId",
- "module_append" => "textbook/module",
- "module_field" => "moduleId",
- ),
- // 客户端加密
- "app_salt" => "LC@5012bi",
- "qrcode_path" => "upload/qrcodes/",
- 'mt_prefix' => 'http://mt.zhixinhuixue.net/cgi-bin/mathtex.cgi?',
- // 教师端 Url
- 'te_url' => 'http://zsyte.testing.xueping.com/',
- 'get_limit_url' => 'http://zsy.dev.xueping.com/ims/service/permit', // 权限接口
- 'limit_open' => true,//是否打开权限
- 'order_open' => true,//是否打开订单入口
- 'fdfs_open' => true,//是否打开fdfs
- 'handler_log' =>1,
- 'ruanyun_exam_interface' =>'http://59.53.183.217:30100/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"=>"/usr/local/phantomjs211/bin/phantomjs",//测试服上的phantomjs路径
- "phantomjs_server_en" => "/usr/local/phantomjs198/bin/phantomjs",//phantomjs路径
- // "phantomjs_server" => "D:/wamp64/www/phantomjs.exe",
- "html2pdf_server"=>"/usr/local/phantomjs/app/html2pdf.js",//测试服上的html2pdf路径
- "phantomjs"=>"C:/wamp/www/fengche/src/webadmin/trunk/js/pdf/phantomjs.exe",//本地的phantomjs路径
- "html2pdf"=>"C:/wamp/www/fengche/src/webadmin/trunk/js/pdf/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.dev.xueping.com/wordapi/index',
- 'coach_server_callback_url' => 'http://zsyte.dev.xueping.com/wordapi/coach',
- 'formula_type' => 2, // 公式转换类型 1:mathml格式 2:LaTeX格式
- 'word_analysis_url' => 'http://192.168.1.140:18082/upload',
- 'xbpaper_callback_url' => 'http://zsyte.testing.xueping.com/wordapi/xbpaper', //校本卷库word回调地址
- //zsyas2域名
- 'zsyas2_url' => 'http://zsyas2.testing.xueping.com',
- //数学对应科目ID
- 'mathSubjectId'=>array(3,6,51,41),
- ),
- );
|