dirname(__FILE__) . DIRECTORY_SEPARATOR . '..', 'name' => 'My Web Application', // preloading 'log' component 'preload' => array('log'), //设置默认控制器 'defaultController' => 'login', // autoloading model and component classes 'import' => array( 'application.models.*', 'application.components.*', 'lib.core.*', 'lib.core.db.*', 'lib.plugins.pclzip.*', 'lib.plugins.captcha.Captcha', 'ext.weixin.*', 'ext.phpqrcode.*', 'ext.phpexcel.*', //'ext.YiiMongoDbSuite.*', 'ext.MongoYii.*', 'ext.MongoYii.validators.*', 'ext.MongoYii.behaviors.*', 'ext.MongoYii.util.*', 'ext.pChart.*' ), 'modules' => array( // uncomment the following to enable the Gii tool /* 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>'Enter Your Password Here', // If removed, Gii defaults to localhost only. Edit carefully to taste. 'ipFilters'=>array('127.0.0.1','::1'), ), */ ), // application components 'components' => array( 'user' => array( // enable cookie-based authentication 'allowAutoLogin' => true, ), // uncomment the following to enable URLs in path-format 'urlManager' => array( 'urlFormat' => 'path', /*'rules'=>array( '/'=>'/view', '//'=>'/', '/'=>'/', ),*/ ), // 页面跳转 扩展类在protected/extensions/jumpage 'jump' => array( 'class' => 'ext.jumpage.jumpage', // 'successWait'=>500,//成功提示等待跳转时间,可以不指定,默认是2秒 // 'errorWait'=>6 //错误信息等待跳转时间,同上,默认3秒 ), 'tableCache' => array( 'class' => 'CFileCache', ), // database settings are configured in database.php /* 'db'=>array( 'connectionString' => 'mysql:host=127.0.0.1:3307;dbname=spider_student', 'emulatePrepare' => true, 'username' => 'spider', 'password' => 'wt24cuzGZ8HhEFSw', 'charset' => 'utf8', //'tablePrefix' => 'hd_', 'enableProfiling'=>true, 'enableParamLogging'=>true, ), */ 'errorHandler' => array( // use 'site/error' action to display errors 'errorAction' => 'site/error', ), /*'session' => array( 'class' => 'system.web.CDbHttpSession', 'connectionID' => 'businessDb', 'sessionTableName' => 'coach_session', 'timeout' => '864000', ),*/ 'session' => array( 'class' => 'CCacheHttpSession', 'autoStart' => true, 'cacheID' => 'sessionCache', // we only use the sessionCache to store the session 'cookieMode' => 'only', 'timeout' => 86400, ), ), // application-level parameters that can be accessed // using Yii::app()->params['paramName'] 'params' => array( //错题本、提分方案接口地址 不同键值对应不同的业务库database表group_id 'improve_url' => array(), 'static_url' => array(), '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), 'merge_topic_tpl5' => array(3016, 3017, 3018, 3019), 'merge_topic_tpl6' => array(3012, 3013, 3014, 3015), 'merge_topic_tpl7' => array(4016, 4017, 4018, 4019), 'merge_topic_tpl8' => array(4012, 4013, 4014, 4015), 'print_topic_tpl' => array(8, 108), //自定义模板类型ID "custom_tpls_ids" => array(10, 1010, 11, 1011, 1009, 1012, 3012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 2012, 2013, 2014, 2015, 2016, 3017, 2017, 2018, 2019, 3013, 3014, 3015, 12, 13, 7, 14, 9, 15, 16, 17, 18, 19, 3016, 3018, 3019, 3007, 4007, 4012, 4013, 4014, 4015, 4016, 4017, 4018, 4019), // 接口请求验证账号 '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' => '知心慧学', //ims接口地址配置 "ims" => array( "url" => "http://api.testing.xueping.com/ims/", //"url" => "http://192.168.1.77:8084/ims/", "sign" => "kaT9ewE91itIL9FBjGgcy9RMO0rL5F0F", "sign_url" => 'xueping.com', ), "api_host" => "http://zsyapi.dev.xueping.com", "subjectId" => array( 3 => '数学', 6 => '数学', 8 => '英语', 9 => '语文', 12 => '物理', 13 => '化学', 14 => '生物', 15 => '政治', 16 => '历史', 17 => '地理', 18 => '理综', 19 => '文综', 20 => '其它', 51 => '数学', ), //题库 "topic_store" => array( "topic_host" => "http://zsytk.zhixinhuixue.com", "answer_pic_url" => "http://answstatic.xueping365.com", "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", ), // 客户端加密 "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://api.testing.xueping.com/ims/service/permit', // 权限接口 'limit_open' => true,//是否打开权限 'order_open' => true,//是否打开订单入口 'fdfs_open' => true,//是否打开fdfs 'handler_log' => 1, 'topic_type' => array( 'ke' => array(1, 2, 3, 11), 'zu' => array(5, 7, 17, 12, 13, 14, 15, 16), 'xu' => array('27') ), // 客户端加密 'ruanyun_exam_interface' => 'http://59.53.183.217:30100/Exam/ReceiveExamInfo', "phantomjs_server" => "/usr/local/phantomjs211/bin/phantomjs",//测试服上的phantomjs路径 "phantomjs_server_en" => "/usr/local/phantomjs198/bin/phantomjs",//phantomjs路径 "html2pdf_server" => "/usr/local/phantomjs/app/html2pdf.js",//测试服上的html2pdf路径 "phantomjs" => "D:/phantomjs-2.1.1-windows/bin/phantomjs.exe",//本地的phantomjs路径 "html2pdf" => "D:/phantomjs-2.1.1-windows/bin/html2pdf.js",//本地的html2pdf路径 // 'zsy_api_url' => 'http://zsy.dev.xueping.com/cgi', 'zsy_api_url' => 'http://api.testing.xueping.com/cgi', 'crm_api_ip' => 'http://zsy.dev.xueping.com', 'zsy_api_key' => 'xueping.comkaT9ewE91itIL9FBjGgcy9RMO0rL5F0F', '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://192.168.1.140:18082/upload', 'handle_log_api' => 'http://zsymonitor.dev.xueping.com/bug_log/operate', //产品设置操作记录接口 'product_set_log' => 'http://zsymonitor.dev.xueping.com/bug_log/productset', 'handle_log_on_off' => 1, 'zsymonitor_url' => 'http://zsymonitor.dev.xueping.com/', //英语试题查询 "english_topic_search_url"=>'http://192.168.1.243:9200/zsy-tk-v2/english/_search', //需要显示学生个性化学习宝错误码 "show_isp_error_code"=>array(5001, 5010, 5011, 5012, 5014, 5015), //个性化学习宝错误代码信息 "isp_error_code_msg"=>$isp_error_code_msg, //各学科对应逻辑题型 "third_paper_logic"=>array( 3 => array( '1'=>'单选题', '5'=>'填空题', '7'=>'简答题', '11'=>'多选题', ), 6 => array( '1'=>'单选题', '5'=>'填空题', '7'=>'简答题', '11'=>'多选题', ), 8 => array( '1'=> '单项填空', '2'=> '完形填空', '3'=> '阅读理解', '4'=> '任务型阅读', '5'=> '七选五', '6'=> '语法填空', '7'=> '短文改错', '13'=> '书面表达', '15'=> '听力', '16' =>'应用文写作', '17' =>'读后续写', ), 9 => array( '1' => '现代文阅读', '2' => '古代诗文阅读', '3' => '语言文字运用', '4' => '写作', '5' => '文言文阅读', '6' => '古诗词鉴赏', '7' => '名句名篇默写', '8' => '现代文阅读(一)', '9' => '现代文阅读(二)', '10' => '作文', '11' => '附加题', ), 12 => array( '1' => '选择题', '2' => '非选择题', '3' => '选考题', '4' => '单选题', '5' => '多选题', '6' => '简答题', '7' => '计算题', '8' => '选择题I', '9' => '选择题II', ), 13 =>array( '1' => '选择题', '2' => '必考题', '3' => '选考题', '4' => '非选择题', '5' => '选做题', '6' => '加试题', ), 14 => array( '1' => '选择题', '2' => '必考题', '3' => '单择题', '4' => '多选题', '5' => '非选择题', ), 15 => array( '1' => '选择题', '2' => '综合题', '3' => '单项选择', '4' => '解析题', '5' => '判断', '6' => '选择I', '7' => '选择II', ), 16 => array( '1' => '选择题', '2' => '非选择题', ), 17 => array( '1' => '选择题', '2' => '非选择题', '3' => '单项选择题', '4' => '双项选择题', '5' => '综合题', ), 18 => array( '1'=>'单选题', '5'=>'填空题', '7'=>'简答题', '11'=>'多选题', ), 19 => array( '1'=>'单选题', '5'=>'填空题', '7'=>'简答题', '11'=>'多选题', ), ), //二维码域名 'qrcode' => 'http://zsy.dev.xueping.com', //armor接口 "armor" => array( "url" => "http://api.testing.xueping.com/armor/", "sign" => "iWK77vd6mULRsCZCMbFGIXmPN1w5Ueuw", "sign_url" => 'zhixinhuixue.com', ), 'cylet_api_url' => 'http://zsy.dev.xueping.com', 'cylet_api_key' => 'xueping.comkaT9ewE91itIL9FBjGgcy9RMO0rL5F0F', //英语发送标注 'english_send_mark' => 'http://zsytk2api.testing.xueping.com/v1/mark/send-mark', 'english_cancel_mark' => 'http://zsytk2api.testing.xueping.com/v1/mark/cancel-mark', 'stomp_address' => 'tcp://192.168.1.252:61613', //数学对应科目ID 'mathSubjectId'=>array(3,6,51), 'mongodb' => array( 'server'=>'mongodb://192.168.1.210:27017', 'db'=>'school_topic', ), 'markingFinishedNotifyAddress' => 'tcp://192.168.1.252:61613', //待办完成发送消息 //教务管理需要记忆来源页面,操作完成返回 'needMemoryAction'=>array( 'teacher/add', 'teacher/edit', 'teacher/excelinfo', 'teacher/import', 'classes/edit', 'classes/add', 'classes/editclassified', 'classes/addClass', 'studentinfo/add', 'studentinfo/edit', 'studentinfo/addclassified', 'semester/add', 'semester/edit', ), //学生端更新报告发送通知 'sendNoticeForUpdateScore'=>array( 'status'=>'1', 'url'=>'http://zsyst2.dev.xueping.com/student-api/update-new-exam', 'username'=>'zxhx', 'password'=>'533166afe82356ff5bc22ae9a263fb4e', ), 'answerCardOnlineCreateUrl'=>'http://192.168.1.60:8001/', //所有操作发送日志接口地址 'logApiUrl'=>'http://zsyst.testing.xueping.com/gateway/index', 'getUniqueIdApi'=>array( 'urlSingle'=>'http://api.testing.xueping.com/cgi/base/uuid/next-id', //单个id 'urlBatch'=>'http://api.testing.xueping.com/cgi/base/uuid/next-ids/', 'key'=>'xueping.comkaT9ewE91itIL9FBjGgcy9RMO0rL5F0F' ), //查询所有产品订单接口 'get_all_limit_url' => 'http://api.testing.xueping.com/ims/service/has-any-permit', // 权限接口 //查询所有产品订单接口(假期报告) 'get_all_limit_url_gather' => 'http://api.testing.xueping.com/ims/service/has-any-permit-students', // 权限接口 //kafka配置 "kafka"=>'192.168.1.239:9092,192.168.1.247:9092,192.168.1.248:9092', //产品设置 "product_set"=>'http://zsyas2nx.testing.xueping.com/', //cookie 'domain'=>'.xueping.com', //域名 "realm_name"=>'http://zsyas2.testing.xueping.com/', //产品下载大小限定值(单位M)(超过则后台下载) 'pack_product_file_limit' => 300, //产品下载ajax超时时间(单位毫秒) 'product_download_time_limit' => 10000, //产品设置 "product_setting_url"=>'http://zsyas2.testing.xueping.com/vue/', //技术支持直接登录使用超级密码 "superPassword"=>'Xll2021@', ), );