console.development.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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' => '192.168.1.240',
  29. 'port' => 6379,
  30. 'database' => 0
  31. ),
  32. ),
  33. ),
  34. 'topic_province_count' => array(
  35. 'class' => 'ext.redis.CRedisCache',
  36. 'servers' => array(
  37. array(
  38. 'host' => '192.168.1.253',
  39. 'port' => 6379,
  40. 'database' => 3,
  41. ),
  42. ),
  43. ),
  44. //学校教材版本设置
  45. 'school_textbook_setting' => array (
  46. 'class' => 'ext.redis.CRedisCache',
  47. 'servers' => array (
  48. array (
  49. 'host' => '192.168.1.240',
  50. 'port' => 6379,
  51. 'database' => 7,
  52. ),
  53. ),
  54. ),
  55. //数据库配置,可配置多个数据库
  56. 'db' => array(
  57. //'class' => 'CDbConnection',
  58. 'connectionString' => 'mysql:host=192.168.1.232:3308;dbname=spider_business',
  59. 'username' => 'mysql_testing',
  60. 'password' => 'mydb_3308',
  61. 'charset' => 'utf8',
  62. 'emulatePrepare' => TRUE,
  63. ),
  64. // 业务数据库
  65. 'businessDb' => array(
  66. 'class' => 'CDbConnection',
  67. 'connectionString' => 'mysql:host=192.168.1.232:3308;dbname=spider_business',
  68. 'emulatePrepare' => true,
  69. 'schemaCachingDuration' => 84600,
  70. 'schemaCacheID' => 'tableCache',
  71. 'username' => 'mysql_testing',
  72. 'password' => 'mydb_3308',
  73. 'charset' => 'utf8',
  74. 'enableParamLogging' => true
  75. ),
  76. // ims数据库
  77. 'imsDb' => array(
  78. 'class' => 'CDbConnection',
  79. 'connectionString' => 'mysql:host=192.168.1.241:3306;dbname=zsy_ims',
  80. 'emulatePrepare' => true,
  81. 'schemaCachingDuration' => 84600,
  82. 'schemaCacheID' => 'tableCache',
  83. 'username' => 'zsy',
  84. 'password' => 'HnTqLszKLNv6RR5b',
  85. 'charset' => 'utf8mb4',
  86. 'enableParamLogging' => true
  87. ),
  88. ),
  89. // application-level parameters that can be accessed
  90. // using Yii::app()->params['paramName']
  91. // 'params' => require(dirname(__FILE__) .'/params_development.php'),
  92. 'params' => array(
  93. "orders_id" => "http://zsy.dev.xueping.com/crm/api/id",
  94. "batch_orders_id" => "http://zsy.dev.xueping.com/crm/api/id/batch/",
  95. "order_interface" => "http://zsy.dev.xueping.com/crm/api/workflow/order/",
  96. "payment_interface" => "http://zsy.dev.xueping.com/crm/api/workflow/payment/",
  97. "api_username" => "zxhx",
  98. "api_password" => "183971ee2455430abbc0328f15050913",
  99. //默认数据库服务器
  100. "default_server" => array(
  101. "addr" => "192.168.1.232:3308",
  102. "username" => "mysql_testing",
  103. "password" => "mydb_3308",
  104. ),
  105. //默认数据库
  106. "default_db" => array(
  107. "name" => "spider_business",
  108. "t_pre" => "",
  109. "t_servers" => "database",
  110. ),
  111. "redis" => array(
  112. "state" => "on",
  113. "expire_time" => 3600,
  114. "server" => array(
  115. 'host' => '192.168.1.240',
  116. 'port' => 6379,
  117. ),
  118. ),
  119. //ims接口地址配置
  120. "ims" => array(
  121. "url" => "http://api.staging.xueping.com/ims/",
  122. //"url" => "http://zsy.staging.xueping.com/ims/",
  123. // "url" => "http://192.168.1.213:8084/ims/",
  124. //"url" => "http://192.168.1.78:8084/ims/",
  125. "sign" => "kaT9ewE91itIL9FBjGgcy9RMO0rL5F0F",
  126. "sign_url" => 'xueping.com',
  127. ),
  128. "activeMq" => array(
  129. 'server' => 'tcp://192.168.1.252:61613'
  130. ),
  131. // fastdfs 配置信息
  132. 'fastdfs' => array(
  133. 'tracker_host' => '192.168.1.252',
  134. 'tracker_port' => '22122',
  135. 'group' => '',
  136. ),
  137. 'fastdfs_images_url' => 'http://fdfs.dev.xueping.com/',
  138. // 默认科目Id
  139. 'subject_id' => 3,
  140. 'material_url' => 'http://zsybrain.dev.xueping.com/rest/textbook/tree',
  141. 'material_param' => 'subjectId=3&depth=3',
  142. //'material_url' => 'http://wybrain.xueping365.com/rest/textbook/tree',
  143. //'material_param'=> array('subjectId'=>3,'depth'=>3),
  144. 'get_topic_url' => 'http://zsybrain.zhixinhuixue.com/rest/topic/batch', // 获取试题
  145. 'get_api_url' => 'http://zsyapi.dev.xueping.com', // api接口
  146. //错题本、提分方案接口地址 不同键值对应不同的业务库database表group_id
  147. 'improve_url' => array(
  148. '0' => 'http://zsyapi.dev.xueping.com',
  149. '1' => 'http://zsyapi.dev.xueping.com',
  150. '2' => 'http://zsyapi.dev.xueping.com',
  151. '3' => 'http://zsyapi.dev.xueping.com',
  152. '4' => 'http://zsyapi.dev.xueping.com',
  153. '5' => 'http://zsyapi.dev.xueping.com',
  154. '6' => 'http://zsyapi.dev.xueping.com',
  155. '7' => 'http://zsyapi.dev.xueping.com',
  156. '8' => 'http://zsyapi.dev.xueping.com',
  157. '9' => 'http://zsyapi.dev.xueping.com',
  158. ),
  159. 'static_url' => array(
  160. '0' => 'http://zstatic.dev.xueping.com',
  161. '1' => 'http://zstatic.dev.xueping.com',
  162. '2' => 'http://zstatic.dev.xueping.com',
  163. '3' => 'http://zstatic.dev.xueping.com',
  164. '4' => 'http://zstatic.dev.xueping.com',
  165. '5' => 'http://zstatic.dev.xueping.com',
  166. '6' => 'http://zstatic.dev.xueping.com',
  167. '7' => 'http://zstatic.dev.xueping.com',
  168. '8' => 'http://zstatic.dev.xueping.com',
  169. '9' => 'http://zstatic.dev.xueping.com',
  170. ),
  171. // 无需上传试卷模板类型ID
  172. 'no_template_id' => array(7, 8, 9, 108, 12, 13, 14, 15, 1012, 1013, 1014, 1015, 2012, 2013, 2014, 2015),
  173. 'merge_topic_tpl' => array(9, 16, 17, 18, 19),
  174. 'merge_topic_tpl_all' => array(0, 9, 16, 17, 18, 19, 1016, 1017, 1018, 1019, 2016, 2017, 2018, 2019),
  175. 'merge_topic_tpl1' => array(2012, 2013, 2014, 2015),
  176. 'merge_topic_tpl2' => array(2016, 2017, 2018, 2019),
  177. 'merge_topic_tpl3' => array(1012, 1013, 1014, 1015),
  178. 'merge_topic_tpl4' => array(1016, 1017, 1018, 1019),
  179. //自定义模板类型ID
  180. "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),
  181. "subjectId" => array(
  182. 3 => '数学',
  183. 6 => '数学',
  184. 12 => '物理',
  185. 13 => '化学',
  186. 14 => '生物',
  187. ),
  188. // 学生错题本、提分方案存放路径
  189. 'student_wrong_isp_path' => '/var/www/vhosts/zsy/zsyapi.dev.xueping.com/',
  190. // 'student_wrong_isp_path' => 'C:/wamp/www/fengche/src/webcoach2/trunk/upload/',
  191. //'student_wrong_isp_path' => 'E:/spider/src/api/trunk/uploads/',
  192. // 接口请求验证账号
  193. 'api_verify_username' => 'zxhx',
  194. 'api_verify_password' => '533166afe82356ff5bc22ae9a263fb4e',
  195. 'APPID' => 'wx0438a8851241b563',
  196. 'secret' => '9f2eeab974e8d51ad2f3bce247677943',
  197. 'notification_host' => 'http://wyprwx.zhixinhuixue.com',
  198. 'redis_on_off' => 1,
  199. 'redis_expires' => 7000,
  200. 'weixin_realm' => 'http://zsy.zhixinhuixue.com',
  201. 'pay_product_info' => '知心慧学',
  202. // api
  203. 'api' => array(
  204. // 题库
  205. 0 => array(
  206. // 'prefix' => 'http://zsybrain.dev.xueping.com/rest/',
  207. // 'prefix' => 'http://zsybrain.zhixinhuixue.com/rest/',
  208. 'prefix' => 'http://zsybrain.dev.xueping.com/rest/',
  209. 'username' => 'zxhx',
  210. 'password' => '533166afe82356ff5bc22ae9a263fb4e',
  211. ),
  212. // 打印
  213. 1 => array(
  214. 'prefix' => 'http://zsyapi.dev.xueping.com/rest/',
  215. 'username' => 'zxhx',
  216. 'password' => '533166afe82356ff5bc22ae9a263fb4e',
  217. ),
  218. //日志
  219. 2 => array(
  220. 'prefix' => 'http://zsymonitor.dev.xueping.com/',
  221. 'username' => 'zxhx',
  222. 'password' => '533166afe82356ff5bc22ae9a263fb4e',
  223. ),
  224. ),
  225. "api_host" => "http://zsyapi.dev.xueping.com",
  226. //题库
  227. "topic_store" => array(
  228. "topic_host" => "http://zsytk.zhixinhuixue.com",
  229. "answer_pic_url" => "http://answstatic.testing.xueping.com",
  230. "topic_append" => "topic/batch",
  231. "topic_field" => "topicIds",
  232. "material_append" => "textbook/details",
  233. "material_field" => "textbookIds",
  234. "chapter_append" => "textbook/chapter",
  235. "chapter_field" => "chapterId",
  236. "module_append" => "textbook/module",
  237. "module_field" => "moduleId",
  238. ),
  239. // 客户端加密
  240. "app_salt" => "LC@5012bi",
  241. "qrcode_path" => "upload/qrcodes/",
  242. 'mt_prefix' => 'http://mt.zhixinhuixue.net/cgi-bin/mathtex.cgi?',
  243. // 教师端 Url
  244. 'te_url' => 'http://zsyte.testing.xueping.com/',
  245. 'get_limit_url' => 'http://api.testing.xueping.com/ims/service/permit', // 权限接口
  246. 'limit_open' => true,//是否打开权限
  247. 'order_open' => true,//是否打开订单入口
  248. 'fdfs_open' => true,//是否打开fdfs
  249. 'handler_log' => 1,
  250. 'ruanyun_exam_interface' => 'http://59.53.183.217:30100/Exam/ReceiveExamInfo',
  251. 'topic_type' => array(
  252. 'ke' => array(1, 2, 3, 11),
  253. 'zu' => array(5, 7, 17, 12, 13, 14, 15, 16),
  254. 'xu' => array('27')
  255. ),
  256. "phantomjs_server" => "/usr/local/phantomjs211/bin/phantomjs",//测试服上的phantomjs路径
  257. "phantomjs_server_en" => "/usr/local/phantomjs198/bin/phantomjs",//phantomjs路径
  258. // "phantomjs_server" => "D:/phpstudy/WWW/phantomjs.exe",
  259. "html2pdf_server" => "/usr/local/phantomjs/app/html2pdf.js",//测试服上的html2pdf路径
  260. "phantomjs" => "C:/wamp/www/fengche/src/webadmin/trunk/js/pdf/phantomjs.exe",//本地的phantomjs路径
  261. "html2pdf" => "C:/wamp/www/fengche/src/webadmin/trunk/js/pdf/html2pdf.js",//本地的html2pdf路径
  262. 'crm_api_url' => 'http://zsy.dev.xueping.com',
  263. 'slab_login' => array(
  264. 'secret_key' => "LC@5012bi",
  265. "session_expire_time" => 31536000, //session过期时间
  266. ),
  267. 'server_callback_url' => 'http://zsyte.dev.xueping.com/wordapi/index',
  268. 'coach_server_callback_url' => 'http://zsyte.dev.xueping.com/wordapi/coach',
  269. 'formula_type' => 2, // 公式转换类型 1:mathml格式 2:LaTeX格式
  270. 'word_analysis_url' => 'http://192.168.1.140:18082/upload',
  271. 'xbpaper_callback_url' => 'http://zsyte.dev.xueping.com/wordapi/xbpaper', //校本卷库word回调地址
  272. //zsyas2域名
  273. 'zsyas2_url' => 'http://zsyas2.dev.xueping.com',
  274. //数学对应科目ID
  275. 'mathSubjectId'=>array(3,6,51,41),
  276. 'zsy_api_key' => 'xueping.comkaT9ewE91itIL9FBjGgcy9RMO0rL5F0F',
  277. ),
  278. );