console.production.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <?php
  2. return array(
  3. 'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR .'..',
  4. 'name' => 'Teccher Console Application',
  5. 'charset' => 'utf-8',
  6. 'language' => 'zh_cn',
  7. 'timeZone' => 'Asia/Chongqing',
  8. 'import' => array(
  9. 'application.models.*',
  10. 'application.components.*',
  11. 'lib.core.*',
  12. 'lib.core.db.*',
  13. ),
  14. 'components' => array(
  15. 'log' => array(
  16. 'class' => 'CLogRouter',
  17. 'routes' => array(
  18. array(
  19. 'class' => 'CFileLogRoute',
  20. 'levels' => 'info, warning, error',
  21. ),
  22. ),
  23. ),
  24. 'cache' => array(
  25. 'class' => 'ext.redis.CRedisCache',
  26. 'servers' => array(
  27. array(
  28. //'host' => '10.19.165.180',
  29. 'host' => '172.16.1.56',
  30. 'port' => 6379,
  31. 'password'=>'X_7X40cF-3N'
  32. // 'connection_timeout'=>86400,
  33. ),
  34. ),
  35. ),
  36. 'topic_province_count' => array(
  37. 'class' => 'ext.redis.CRedisCache',
  38. 'servers' => array(
  39. array(
  40. 'host' => '172.16.1.25',
  41. 'port' => 6379,
  42. 'database' => 3,
  43. 'password'=>'Pq1x-oX7Jl_NmS-q19'
  44. ),
  45. ),
  46. ),
  47. //学校教材版本设置
  48. 'school_textbook_setting' => array (
  49. 'class' => 'ext.redis.CRedisCache',
  50. 'servers' => array (
  51. array (
  52. 'host' => '172.16.1.56',
  53. 'port' => 6379,
  54. 'database' => 7,
  55. 'password'=>'X_7X40cF-3N'
  56. ),
  57. ),
  58. ),
  59. //数据库配置,可配置多个数据库
  60. 'db' => array(
  61. 'connectionString' => 'mysql:host=172.16.1.20:3306;dbname=zsy_business',
  62. 'username' => 'zsy',
  63. 'password' => 'Hbt3sZNxepnZQNPU',
  64. 'charset' => 'utf8',
  65. 'emulatePrepare' => TRUE,
  66. ),
  67. // 业务数据库
  68. 'businessDb' => array(
  69. 'class' => 'CDbConnection',
  70. 'connectionString' => 'mysql:host=172.16.1.20:3306;dbname=zsy_business',
  71. 'emulatePrepare' => true,
  72. 'schemaCachingDuration' => 84600,
  73. 'schemaCacheID' => 'tableCache',
  74. 'username' => 'zsy',
  75. 'password' => 'Hbt3sZNxepnZQNPU',
  76. 'charset' => 'utf8',
  77. 'enableParamLogging' => true
  78. ),
  79. // ims数据库
  80. 'imsDb' => array(
  81. 'class' => 'CDbConnection',
  82. 'connectionString' => 'mysql:host=172.16.1.31:3306;dbname=zsy_ims',
  83. 'emulatePrepare' => true,
  84. 'schemaCachingDuration' => 84600,
  85. 'schemaCacheID' => 'tableCache',
  86. 'username' => 'zsy',
  87. 'password' => 'Hbt3sZNxepnZQNPU',
  88. 'charset' => 'utf8mb4',
  89. 'enableParamLogging' => true
  90. ),
  91. ),
  92. // application-level parameters that can be accessed
  93. // using Yii::app()->params['paramName']
  94. 'params'=>array(
  95. "orders_id"=>"http://zsy.zhixinhuixue.com/crm/api/id",
  96. "batch_orders_id"=>"http://zsy.zhixinhuixue.com/crm/api/id/batch/",
  97. "order_interface"=>"http://zsy.zhixinhuixue.com/crm/api/workflow/order/",
  98. "payment_interface"=>"http://zsy.zhixinhuixue.com/crm/api/workflow/payment/",
  99. "api_username"=>"zxhx",
  100. "api_password"=>"183971ee2455430abbc0328f15050913",
  101. "default_server" => array(
  102. "addr" => "172.16.1.20",
  103. "username" => "zsy",
  104. "password" => "Hbt3sZNxepnZQNPU",
  105. ),
  106. "default_db" => array(
  107. "name" => "zsy_business",
  108. "t_pre" => "",
  109. "t_servers" => "database",
  110. ),
  111. "redis" => array(
  112. "state" => "on",
  113. "expire_time" => 3600,
  114. "server" => array(
  115. 'host'=>'10.19.165.180',
  116. 'port'=>6379,
  117. ),
  118. ),
  119. "activeMq"=>array(
  120. 'server'=>'tcp://10.19.63.195:61613'
  121. ),
  122. //ims接口地址配置
  123. "ims" => array(
  124. "url" => "http://api.zsyims.zhixinhuixue.com/ims/",
  125. "sign" => "iWK77vd6mULRsCZCMbFGIXmPN1w5Ueuw",
  126. "sign_url" => 'zhixinhuixue.com',
  127. ),
  128. // fastdfs 配置信息
  129. 'fastdfs'=>array(
  130. 'tracker_host' => '10.19.103.150',
  131. 'tracker_port' => '22122',
  132. 'group' => '',
  133. ),
  134. 'fastdfs_images_url'=>'http://fs.zhixinhuixue.com/',
  135. // 默认科目Id
  136. 'subject_id' => 3,
  137. 'material_url' => 'http://zsybrain.zhixinhuixue.com/rest/textbook/tree',
  138. 'material_param'=> 'subjectId=3&depth=3',
  139. 'get_topic_url' => 'http://zsybrain.zhixinhuixue.com/rest/topic/batch', // 获取试题
  140. 'get_api_url' => 'http://zsyapi.zhixinhuixue.com', // api接口
  141. //错题本、提分方案接口地址 不同键值对应不同的业务库database表group_id
  142. 'improve_url' => array(
  143. '0' => 'http://zsyapi.zhixinhuixue.com',
  144. '1' => 'http://zsyapi1.zhixinhuixue.com',
  145. '2' => 'http://zsyapi2.zhixinhuixue.com',
  146. '3' => 'http://zsyapi3.zhixinhuixue.com',
  147. '4' => 'http://zsyapi4.zhixinhuixue.com',
  148. '5' => 'http://zsyapi5.zhixinhuixue.com',
  149. '6' => 'http://zsyapi6.zhixinhuixue.com',
  150. '7' => 'http://zsyapi7.zhixinhuixue.com',
  151. '8' => 'http://zsyapi8.zhixinhuixue.com',
  152. '9' => 'http://zsyapi9.zhixinhuixue.com',
  153. ),
  154. 'static_url' => array(
  155. '0' => 'http://zstatic.zhixinhuixue.com',
  156. '1' => 'http://zstatic1.zhixinhuixue.com',
  157. '2' => 'http://zstatic2.zhixinhuixue.com',
  158. '3' => 'http://zstatic3.zhixinhuixue.com',
  159. '4' => 'http://zstatic4.zhixinhuixue.com',
  160. '5' => 'http://zstatic5.zhixinhuixue.com',
  161. '6' => 'http://zstatic6.zhixinhuixue.com',
  162. '7' => 'http://zstatic7.zhixinhuixue.com',
  163. '8' => 'http://zstatic8.zhixinhuixue.com',
  164. '9' => 'http://zstatic9.zhixinhuixue.com',
  165. ),
  166. // 无需上传试卷模板类型ID
  167. 'no_template_id'=> array(7,8,9,108,12, 13, 14, 15,1012,1013,1014,1015,2012,2013,2014,2015),
  168. 'merge_topic_tpl'=>array(9,16,17,18,19),
  169. 'merge_topic_tpl_all'=>array(9,16,17,18,19,1016,1017,1018,1019,2016,2017,2018,2019),
  170. 'merge_topic_tpl1'=>array(2012,2013,2014,2015),
  171. 'merge_topic_tpl2'=>array(2016,2017,2018,2019),
  172. 'merge_topic_tpl3'=>array(1012,1013,1014,1015),
  173. 'merge_topic_tpl4'=>array(1016,1017,1018,1019),
  174. /*"subjectId" => array(
  175. 3 => '数学',
  176. 6 => '数学',
  177. 8 => '物理',
  178. 9 => '化学',
  179. 10 => '生物',
  180. ),*/
  181. "subjectId" => array(
  182. 3 => '数学',
  183. 6 => '数学',
  184. 12 => '物理',
  185. 13 => '化学',
  186. 14 => '生物',
  187. ),
  188. //自定义模板类型ID
  189. "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),
  190. // 学生错题本、提分方案存放路径
  191. 'student_wrong_isp_path' => '/var/www/vhosts/zsy/zsyapi.zhixinhuixue.com/current/uploads/',
  192. // 客户端加密
  193. "app_salt" => "LC@5012bi",
  194. //学期开学前多少天内可以切换
  195. "semester_allow_to_change_days" => 14,
  196. /*
  197. 'week_wp' => 'http://zsyapi.zhixinhuixue.com/rest/printer/wp', //周周练
  198. 'week_wb' => 'http://zsyapi.zhixinhuixue.com/rest/printer/wb', //错题本
  199. 'week_isp' => 'http://zsyapi.zhixinhuixue.com/rest/printer/isp', //提分册
  200. */
  201. // 接口请求验证账号
  202. 'api_verify_username' => 'zxhx',
  203. 'api_verify_password' => '533166afe82356ff5bc22ae9a263fb4e',
  204. 'APPID'=>'wx42e7f76857003755',
  205. 'secret'=>'8f4f12e2a952c7d461c60204be4c159f',
  206. 'notification_host' => 'http://wx.zhixinhuixue.com',
  207. 'redis_on_off'=>1,
  208. 'redis_expires'=>7000,
  209. 'weixin_realm'=>'http://wx.zhixinhuixue.com',
  210. 'pay_product_info'=>'',
  211. // api
  212. 'api' => array(
  213. // 题库
  214. 0 => array(
  215. 'prefix' => 'http://zsybrain.zhixinhuixue.com/rest/',
  216. 'username' => 'zxhx',
  217. 'password' => '533166afe82356ff5bc22ae9a263fb4e',
  218. ),
  219. // 打印
  220. 1 => array(
  221. 'prefix' => 'http://zsyapi.zhixinhuixue.com/rest/',
  222. 'username' => 'zxhx',
  223. 'password' => '533166afe82356ff5bc22ae9a263fb4e',
  224. ),
  225. //日志
  226. 2=>array(
  227. 'prefix' => 'http://zsymonitor.zhixinhuixue.com/',
  228. 'username' => 'zxhx',
  229. 'password' => '533166afe82356ff5bc22ae9a263fb4e',
  230. ),
  231. ),
  232. "api_host" => "http://zsyapi.zhixinhuixue.com",
  233. //题库
  234. "topic_store" => array(
  235. "topic_host" => "http://zsytk.zhixinhuixue.com",
  236. "answer_pic_url" => "http://zsyapi.zhixinhuixue.com/answers",
  237. "topic_append" => "topic/batchAll",
  238. "topic_field" => "topicIds",
  239. "material_append" => "textbook/details",
  240. "material_field" => "textbookIds",
  241. "chapter_append" => "textbook/chapter",
  242. "chapter_field" => "chapterId",
  243. "module_append" => "textbook/module",
  244. "module_field" => "moduleId",
  245. ),
  246. "qrcode_path" => "upload/qrcodes/",
  247. 'mt_prefix' => 'http://mt.zhixinhuixue.net/cgi-bin/mathtex.cgi?',
  248. // 教师端 Url
  249. 'te_url' => 'http://zsyte.zhixinhuixue.com/',
  250. 'get_limit_url' => 'http://api.zsyims.zhixinhuixue.com/ims/service/permit', // 权限接口
  251. 'limit_open' => true,//是否打开权限
  252. 'order_open' => true,//是否打开订单入口
  253. 'fdfs_open' => true,//是否打开fdfs
  254. 'handler_log' =>0,//mongodb 记录日志
  255. 'ruanyun_exam_interface' =>' http://openapi.tifence.com:4588/Exam/ReceiveExamInfo',
  256. 'topic_type'=>array(
  257. 'ke'=>array(1,2,3,11),
  258. 'zu'=>array(5,7,17,12,13,14,15,16),
  259. 'xu'=>array('27')
  260. ),
  261. "phantomjs_server"=>"/opt/app/phantomjs/bin/phantomjs",//phantomjs路径
  262. "phantomjs_server_en" => "/opt/app/phantomjs198/bin/phantomjs",//phantomjs路径
  263. "html2pdf_server"=>"/usr/local/phantomjs/app/html2pdf.js",//html2pdf路径
  264. 'crm_api_url'=>'http://zsy.dev.xueping.com',
  265. 'slab_login'=>array(
  266. 'secret_key'=>"LC@5012bi",
  267. "session_expire_time" => 31536000, //session过期时间
  268. ),
  269. 'server_callback_url' => 'http://zsyte.zhixinhuixue.com/wordapi/index',
  270. 'coach_server_callback_url' => 'http://zsyte.zhixinhuixue.com/wordapi/coach',
  271. 'formula_type' => 2, // 公式转换类型 1:mathml格式 2:LaTeX格式
  272. 'word_analysis_url' => 'http://zmp.zhixinhuixue.net/math_parse',
  273. 'xbpaper_callback_url' => 'http://zsyte.zhixinhuixue.com/wordapi/xbpaper', //校本卷库word回调地址
  274. //zsyas2域名
  275. 'zsyas2_url' => 'http://zsyas2.zhixinhuixue.com',
  276. //数学对应科目ID
  277. 'mathSubjectId'=>array(3,6,51,41),
  278. 'zsy_api_key' => 'zhixinhuixue.comiWK77vd6mULRsCZCMbFGIXmPN1w5Ueuw',
  279. ),
  280. );