console.testing.php 12 KB

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