main.development.php 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. <?php
  2. // uncomment the following to define a path alias
  3. // Yii::setPathOfAlias('local','path/to/local-folder');
  4. // This is the main Web application configuration. Any writable
  5. // CWebApplication properties can be configured here.'e
  6. //个性化学习宝错误代码信息
  7. $isp_error_code_msg = require('isp_error_code_msg.php');
  8. return array(
  9. 'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
  10. 'name' => 'My Web Application',
  11. // preloading 'log' component
  12. 'preload' => array('log'),
  13. //设置默认控制器
  14. 'defaultController' => 'login',
  15. // autoloading model and component classes
  16. 'import' => array(
  17. 'application.models.*',
  18. 'application.components.*',
  19. 'lib.core.*',
  20. 'lib.core.db.*',
  21. 'lib.plugins.pclzip.*',
  22. 'lib.plugins.captcha.Captcha',
  23. 'ext.weixin.*',
  24. 'ext.phpqrcode.*',
  25. 'ext.phpexcel.*',
  26. //'ext.YiiMongoDbSuite.*',
  27. 'ext.MongoYii.*',
  28. 'ext.MongoYii.validators.*',
  29. 'ext.MongoYii.behaviors.*',
  30. 'ext.MongoYii.util.*',
  31. 'ext.pChart.*'
  32. ),
  33. 'modules' => array(
  34. // uncomment the following to enable the Gii tool
  35. /*
  36. 'gii'=>array(
  37. 'class'=>'system.gii.GiiModule',
  38. 'password'=>'Enter Your Password Here',
  39. // If removed, Gii defaults to localhost only. Edit carefully to taste.
  40. 'ipFilters'=>array('127.0.0.1','::1'),
  41. ),
  42. */
  43. ),
  44. // application components
  45. 'components' => array(
  46. 'user' => array(
  47. // enable cookie-based authentication
  48. 'allowAutoLogin' => true,
  49. ),
  50. // uncomment the following to enable URLs in path-format
  51. 'urlManager' => array(
  52. 'urlFormat' => 'path',
  53. /*'rules'=>array(
  54. '<controller:\w+>/<id:\d+>'=>'<controller>/view',
  55. '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
  56. '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
  57. ),*/
  58. ),
  59. // 页面跳转 扩展类在protected/extensions/jumpage
  60. 'jump' => array(
  61. 'class' => 'ext.jumpage.jumpage',
  62. // 'successWait'=>500,//成功提示等待跳转时间,可以不指定,默认是2秒
  63. // 'errorWait'=>6 //错误信息等待跳转时间,同上,默认3秒
  64. ),
  65. 'tableCache' => array(
  66. 'class' => 'CFileCache',
  67. ),
  68. // database settings are configured in database.php
  69. /* 'db'=>array(
  70. 'connectionString' => 'mysql:host=127.0.0.1:3307;dbname=spider_student',
  71. 'emulatePrepare' => true,
  72. 'username' => 'spider',
  73. 'password' => 'wt24cuzGZ8HhEFSw',
  74. 'charset' => 'utf8',
  75. //'tablePrefix' => 'hd_',
  76. 'enableProfiling'=>true,
  77. 'enableParamLogging'=>true,
  78. ), */
  79. // 业务数据库
  80. 'businessDb' => array(
  81. 'class' => 'CDbConnection',
  82. 'connectionString' => 'mysql:host=192.168.1.210:3307;dbname=spider_business',
  83. 'emulatePrepare' => true,
  84. 'schemaCachingDuration' => 84600,
  85. 'schemaCacheID' => 'tableCache',
  86. 'username' => 'zsy',
  87. 'password' => 'lc12345',
  88. 'charset' => 'utf8',
  89. 'enableParamLogging' => true
  90. ),
  91. 'db251' => array(
  92. 'class' => 'CDbConnection',
  93. 'connectionString' => 'mysql:host=192.168.1.241:3306;dbname=zsy_crm',
  94. 'username' => 'zsy',
  95. 'password' => 'HnTqLszKLNv6RR5b',
  96. 'charset' => 'utf8',
  97. 'schemaCachingDuration' => 84600,
  98. 'schemaCacheID' => 'tableCache',
  99. 'emulatePrepare' => true,
  100. 'enableParamLogging' => true
  101. ),
  102. 'enStuffDb' => array( //英语库
  103. 'class' => 'CDbConnection',
  104. 'connectionString' => 'mysql:host=192.168.1.210:3306;dbname=zsy_stuff',
  105. 'username' => 'zsy',
  106. 'password' => '9X3zV4AP8m5xvYUL',
  107. 'charset' => 'utf8',
  108. 'schemaCachingDuration' => 84600,
  109. 'schemaCacheID' => 'tableCache',
  110. ),
  111. 'errorHandler' => array(
  112. // use 'site/error' action to display errors
  113. 'errorAction' => 'site/error',
  114. ),
  115. /*'session' => array(
  116. 'class' => 'system.web.CDbHttpSession',
  117. 'connectionID' => 'businessDb',
  118. 'sessionTableName' => 'coach_session',
  119. 'timeout' => '864000',
  120. ),*/
  121. 'session' => array(
  122. 'class' => 'CCacheHttpSession',
  123. 'autoStart' => true,
  124. 'cacheID' => 'sessionCache', // we only use the sessionCache to store the session
  125. 'cookieMode' => 'only',
  126. 'timeout' => 86400,
  127. ),
  128. 'sessionCache' => array(
  129. 'class' => 'ext.redis.CRedisCache',
  130. 'servers' => array(
  131. array(
  132. 'host' => '192.168.1.240',
  133. 'port' => 6379,
  134. // 'connection_timeout'=>86400,
  135. ),
  136. ),
  137. ),
  138. 'mongodb' => array(
  139. 'class' => 'EMongoClient', //主文件
  140. 'server' => 'mongodb://192.168.1.251:27017', //服务器地址
  141. 'db' => 'school_handle_log',//数据库名称
  142. /*'fsyncFlag' => true, //mongodb的确保所有写入到数据库的安全存储到磁盘
  143. 'safeFlag' => true, //mongodb的等待检索的所有写操作的状态,并检查
  144. 'useCursor' => false, //设置为true,将启用游标*/
  145. ),
  146. 'mongodb1' => array(
  147. 'class' => 'EMongoClient', //主文件
  148. 'server' => 'mongodb://192.168.1.210:27017', //服务器地址
  149. 'db' => 'school_topic',//数据库名称
  150. /*'fsyncFlag' => true, //mongodb的确保所有写入到数据库的安全存储到磁盘
  151. 'safeFlag' => true, //mongodb的等待检索的所有写操作的状态,并检查
  152. 'useCursor' => false, //设置为true,将启用游标*/
  153. ),
  154. 'log' => array(
  155. 'class' => 'CLogRouter',
  156. 'routes' => array(
  157. array(
  158. 'class' => 'CFileLogRoute',
  159. 'levels' => 'error',
  160. 'categories' => array('system.cmodule.*', 'system.db.*'),
  161. 'subject' => 'zsyas2',
  162. 'ApiUrl' => array(
  163. 'url' => 'http://zsymonitor.dev.xueping.com/bug_log/write',
  164. 'username' => 'zxhx',
  165. 'password' => '533166afe82356ff5bc22ae9a263fb4e',
  166. ),
  167. ),
  168. // uncomment the following to show log messages on web pages
  169. array(
  170. 'class' => 'CNoteLogRoute',
  171. 'levels' => 'error',
  172. 'subject' => 'zsyas2',
  173. 'ApiUrl' => array(
  174. 'url' => 'http://zsymonitor.dev.xueping.com/bug_log/write',
  175. 'username' => 'zxhx',
  176. 'password' => '533166afe82356ff5bc22ae9a263fb4e',
  177. ),
  178. ),
  179. ),
  180. ),
  181. //redis
  182. 'cache' => array(
  183. 'class' => 'ext.redis.CRedisCache',
  184. 'servers' => array(
  185. array(
  186. 'host' => '192.168.1.240',
  187. 'port' => 6379,
  188. 'database' => 0,
  189. ),
  190. ),
  191. ),
  192. 'add_exam_class' => array(
  193. 'class' => 'ext.redis.CRedisCache',
  194. 'servers' => array(
  195. array(
  196. 'host' => '192.168.1.240',
  197. 'port' => 6379,
  198. 'database' => 6,
  199. ),
  200. ),
  201. ),
  202. 'school_tiku_cache' => array(
  203. 'class' => 'ext.redis.CRedisCache',
  204. 'servers' => array(
  205. array(
  206. 'host' => '192.168.1.240',
  207. 'port' => 6379,
  208. 'database' => 4,
  209. ),
  210. ),
  211. ),
  212. 'crm_login_cache' => array(
  213. 'class' => 'ext.redis.CRedisCache',
  214. 'servers' => array(
  215. array(
  216. 'host' => '192.168.1.240',
  217. 'port' => 6379,
  218. 'database' => 6,
  219. ),
  220. ),
  221. ),
  222. 'school_topic_cache' => array(
  223. 'class' => 'ext.redis.CRedisCache',
  224. 'servers' => array(
  225. array(
  226. //'host' => '192.168.1.210',
  227. 'host' => '192.168.1.122',
  228. 'port' => 6379,
  229. 'database' => 8,
  230. // 'password'=>'123456'
  231. ),
  232. ),
  233. ),
  234. 'business_uuid_cache' => array(
  235. 'class' => 'ext.redis.CRedisCache',
  236. 'servers' => array(
  237. array(
  238. 'host' => '192.168.1.240',
  239. 'port' => 6379,
  240. 'database' => 9,
  241. ),
  242. ),
  243. ),
  244. 'group_server_cache' => array(
  245. 'class' => 'ext.redis.CRedisCache',
  246. 'servers' => array(
  247. array(
  248. 'host' => '192.168.1.240',
  249. 'port' => 6379,
  250. 'database' => 1,
  251. ),
  252. ),
  253. ),
  254. 'redis_business_student' => array(
  255. 'class' => 'ext.redis.CRedisCache',
  256. 'servers' => array(
  257. array(
  258. 'host' => '192.168.1.240',
  259. 'port' => 6379,
  260. 'database' => 10,
  261. ),
  262. ),
  263. ),
  264. 'add_student_status' => array(
  265. 'class' => 'ext.redis.CRedisCache',
  266. 'servers' => array(
  267. array(
  268. 'host' => '192.168.1.240',
  269. 'port' => 6379,
  270. 'database' => 6,
  271. ),
  272. ),
  273. ),
  274. 'topic_province_count' => array(
  275. 'class' => 'ext.redis.CRedisCache',
  276. 'servers' => array(
  277. array(
  278. // 'host' => '192.168.1.253',
  279. 'host' => '192.168.1.122',
  280. 'port' => 6379,
  281. 'database' => 3,
  282. ),
  283. ),
  284. ),
  285. 'holiday_report' => array(
  286. 'class' => 'ext.redis.CRedisCache',
  287. 'servers' => array(
  288. array(
  289. 'host' => '192.168.1.240',
  290. 'port' => 6379,
  291. 'database' => 0,
  292. ),
  293. ),
  294. ),
  295. 'stu_login_permission' => array(
  296. 'class' => 'ext.redis.CRedisCache',
  297. 'servers' => array(
  298. array(
  299. 'host' => '192.168.1.240',
  300. 'port' => 6379,
  301. 'database' => 5,
  302. ),
  303. ),
  304. ),
  305. 'method_use_num' => array( //考点使用量
  306. 'class' => 'ext.redis.CRedisCache',
  307. 'servers' => array(
  308. array(
  309. 'host' => '192.168.1.122',
  310. 'port' => 6379,
  311. 'database' => 3,
  312. ),
  313. ),
  314. ),
  315. 'method_video' => array( //考点视频二维码
  316. 'class' => 'ext.redis.CRedisCache',
  317. 'servers' => array(
  318. array(
  319. 'host' => '192.168.1.122',
  320. 'port' => 6379,
  321. 'database' => 1,
  322. ),
  323. ),
  324. ),
  325. 'unpaid_user_setting' => array( //未付费学生权限设置
  326. 'class' => 'ext.redis.CRedisCache',
  327. 'servers' => array(
  328. array(
  329. 'host' => '192.168.1.240',
  330. 'port' => 6379,
  331. 'database' => 7,
  332. ),
  333. ),
  334. ),
  335. /*'cache' => array(
  336. 'class'=>'CDummyCache',
  337. ),*/
  338. ),
  339. // application-level parameters that can be accessed
  340. // using Yii::app()->params['paramName']
  341. 'params' => array(
  342. "orders_id" => "http://zsy.dev.xueping.com/crm/api/id",//获取订单ID
  343. "batch_orders_id" => "http://zsy.dev.xueping.com/crm/api/id/batch/",//获取多个订单ID
  344. "order_interface" => "http://zsy.dev.xueping.com/crm/api/workflow/order/",//验证订单是否添加成功
  345. "payment_interface" => "http://zsy.dev.xueping.com/crm/api/workflow/payment/",//验证支付是否成功
  346. "api_username" => "zxhx",
  347. "api_password" => "183971ee2455430abbc0328f15050913",
  348. //默认数据库服务器
  349. "default_server" => array(
  350. "addr" => "192.168.1.210:3307",
  351. "username" => "zsy",
  352. "password" => "lc12345",
  353. ),
  354. //默认数据库
  355. "default_db" => array(
  356. "name" => "spider_business",
  357. "t_pre" => "",
  358. "t_servers" => "database",
  359. ),
  360. "redis" => array(
  361. "state" => "on",
  362. "expire_time" => 3600,
  363. "server" => array(
  364. 'host' => '192.168.1.240',
  365. 'port' => 6379,
  366. ),
  367. ),
  368. 'user_login_cache' => array(
  369. "state" => "on",
  370. "expire_time" => 3600,
  371. 'servers' => array(
  372. 'host' => '192.168.1.240',
  373. 'port' => 6379,
  374. 'database' => 0,
  375. ),
  376. ),
  377. 'redisCloud' => array(
  378. "state" => "on",
  379. "expire_time" => 86400,
  380. 'servers' => array(
  381. 'host' => '192.168.1.240',
  382. 'port' => 6379,
  383. 'database' => 6,
  384. ),
  385. ),
  386. 'phpServiceRedis' => array( //php服务,用于生成在线答题卡记录状态
  387. "state" => "on",
  388. "expire_time" => 86400,
  389. 'servers' => array(
  390. //'host' => '192.168.1.253',
  391. 'host' => '192.168.1.122',
  392. 'port' => 6379,
  393. 'database' => 5,
  394. ),
  395. ),
  396. 'student_cache_update_queue' => array( //学生端更新缓存
  397. 'class' => 'ext.redis.CRedisCache',
  398. 'servers' => array(
  399. 'host' => '192.168.1.122',
  400. 'port' => 6379,
  401. 'database' => 5,
  402. ),
  403. ),
  404. "ims" => array(
  405. "url" => "http://api.testing.xueping.com/ims/",
  406. //"url" => "http://api.testing.xueping.com/ims/",
  407. //"url" => "http://192.168.1.36:8084/ims/",
  408. //"url" => "http://192.168.1.167:8084/ims/",
  409. //"url" => "http://192.168.1.88:8084/ims/",
  410. "sign" => "kaT9ewE91itIL9FBjGgcy9RMO0rL5F0F",
  411. "sign_url" => 'xueping.com',
  412. ),
  413. // fastdfs 配置信息
  414. 'fastdfs'=>array(
  415. 'tracker_host' => '192.168.1.252',
  416. 'tracker_port' => '22122',
  417. 'group' => '',
  418. ),
  419. 'fastdfs_images_url'=>'http://fdfs.dev.xueping.com/',
  420. // 默认科目Id
  421. 'subject_id' => 3,
  422. 'material_url' => 'http://zsybrain.dev.xueping.com/rest/textbook/tree',
  423. 'material_param'=> 'subjectId=3&depth=3',
  424. //'material_url' => 'http://wybrain.xueping365.com/rest/textbook/tree',
  425. //'material_param'=> array('subjectId'=>3,'depth'=>3),
  426. 'get_topic_url' => 'http://zsybrain.zhixinhuixue.com/rest/topic/batch', // 获取试题
  427. 'get_api_url' => 'http://zsyapi.testing.xueping.com', // api接口
  428. //错题本、提分方案接口地址 不同键值对应不同的业务库database表group_id
  429. 'improve_url' => array(
  430. ),
  431. 'static_url' => array(
  432. ),
  433. // 无需上传试卷模板类型ID
  434. 'no_template_id'=> array(7,8,9,108,12, 13, 14, 15,1012,3012,1013,1014,1015,2012,2013,2014,2015,3013,3014,3015,2011,3011,4012,4013,4014,4015),
  435. 'merge_topic_tpl'=>array(9,16,17,18,19,3016,3007,3017,4007,3017,3018,3019,4016,4017,4018,4019),
  436. 'merge_topic_tpl_all'=>array(9,16,17,18,19,1016,1017,1018,1019,2016,2017,2018,2019,3016,3017,3018,3019,4016,4017,4018,4019),
  437. 'merge_topic_tpl1'=>array(2012,2013,2014,2015),
  438. 'merge_topic_tpl2'=>array(2016,2017,2018,2019),
  439. 'merge_topic_tpl3'=>array(1012,1013,1014,1015),
  440. 'merge_topic_tpl4'=>array(1016,1017,1018,1019),
  441. 'merge_topic_tpl5'=>array(3016,3017,3018,3019),
  442. 'merge_topic_tpl6'=>array(3012,3013,3014,3015),
  443. 'merge_topic_tpl7'=>array(4016,4017,4018,4019),
  444. 'merge_topic_tpl8'=>array(4012,4013,4014,4015),
  445. 'print_topic_tpl'=>array(8,108),
  446. //自定义模板类型ID
  447. //"custom_tpls_ids" => array(12,16,1012,1016,2012,2016,3012,3016,4012,4016,13,17,1013,1017,2013,2017,3013,3017,4013,4017,14,18,1014,1018,2014,2018,3014,3018,4014,4018,15,19,1015,1019,2015,2019,3015,3019,4015,4019),
  448. "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),
  449. //含二维码固定模板
  450. "template_id_qrcode"=>array(3,0,4,1,20,6,5,2,8,108,2011,3011),
  451. /**
  452. * <li val="3">数学</li>
  453. <li val="8">英语</li>
  454. <li val="9">语文</li>
  455. <li val="12">物理</li>
  456. <li val="13">化学</li>
  457. <li val="14">生物</li>
  458. <li val="15">政治</li>
  459. <li val="16">历史</li>
  460. <li val="17">地理</li>
  461. */
  462. "subjectId" => array(
  463. 3 => '数学',
  464. 6 => '数学',
  465. 8 => '英语',
  466. 9 => '语文',
  467. 12 => '物理',
  468. 13 => '化学',
  469. 14 => '生物',
  470. 15 => '政治',
  471. 16 => '历史',
  472. 17 => '地理',
  473. 18 => '理综',
  474. 19 => '文综',
  475. 20=>'其它',
  476. 51 => '数学',
  477. ),
  478. // 学生错题本、提分方案存放路径
  479. 'student_wrong_isp_path' => '/var/www/vhosts/zsy/zsyapi.dev.xueping.com/',
  480. // 'student_wrong_isp_path' => 'C:/wamp/www/fengche/src/webcoach2/trunk/upload/',
  481. //'student_wrong_isp_path' => 'E:/spider/src/api/trunk/uploads/',
  482. // 接口请求验证账号
  483. 'api_verify_username' => 'zxhx',
  484. 'api_verify_password' => '533166afe82356ff5bc22ae9a263fb4e',
  485. 'APPID' => 'wx0438a8851241b563',
  486. 'secret' => '9f2eeab974e8d51ad2f3bce247677943',
  487. 'notification_host' => 'http://wyprwx.zhixinhuixue.com',
  488. 'redis_on_off' => 1,
  489. 'redis_expires' => 7000,
  490. 'weixin_realm' => 'http://zsy.zhixinhuixue.com',
  491. 'pay_product_info' => '知心慧学',
  492. // api
  493. 'api' => array(
  494. // 题库
  495. 0 => array(
  496. 'prefix' => 'http://zsybrain.dev.xueping.com/rest/',
  497. // 'prefix' => 'http://zsybrain.zhixinhuixue.com/rest/',
  498. 'username' => 'zxhx',
  499. 'password' => '533166afe82356ff5bc22ae9a263fb4e',
  500. ),
  501. // 打印
  502. 1 => array(
  503. 'prefix' => 'http://zsyapi.dev.xueping.com/rest/',
  504. 'username' => 'zxhx',
  505. 'password' => '533166afe82356ff5bc22ae9a263fb4e',
  506. ),
  507. ),
  508. "api_host" => "http://zsyapi.dev.xueping.com",
  509. //题库
  510. "topic_store" => array(
  511. "topic_host" => "http://zsytk.zhixinhuixue.com",
  512. "answer_pic_url" => "http://answstatic.testing.xueping.com",
  513. "topic_append" => "topic/batchAll",
  514. "topic_field" => "topicIds",
  515. "material_append" => "textbook/details",
  516. "material_field" => "textbookIds",
  517. "chapter_append" => "textbook/chapter",
  518. "chapter_field" => "chapterId",
  519. "module_append" => "textbook/module",
  520. "module_field" => "moduleId",
  521. ),
  522. // 客户端加密
  523. "app_salt" => "LC@5012bi",
  524. "qrcode_path" => "upload/qrcodes/",
  525. 'mt_prefix' => 'http://mt.zhixinhuixue.net/cgi-bin/mathtex.cgi?',
  526. // 教师端 Url
  527. 'te_url' => 'http://zsyte.dev.xueping.com/',
  528. 'get_limit_url' => 'http://api.testing.xueping.com/ims/service/permit', // 权限接口
  529. 'limit_open' => true,//是否打开权限
  530. 'order_open' => true,//是否打开订单入口
  531. 'fdfs_open' => true,//是否打开fdfs
  532. 'handler_log' => 1,
  533. 'ruanyun_exam_interface' => 'http://openapi.tifence.com:4588/Exam/ReceiveExamInfo',
  534. 'topic_type' => array(
  535. 'ke' => array(1, 2, 3, 11),
  536. 'zu' => array(5, 7, 17, 12, 13, 14, 15, 16),
  537. 'xu' => array('27')
  538. ),
  539. "activeMq" => array(
  540. 'server' => 'tcp://192.168.1.252:61613'
  541. ),
  542. "phantomjs_server" => "/usr/local/phantomjs211/bin/phantomjs",//测试服上的phantomjs路径
  543. "phantomjs_server_en" => "/usr/local/phantomjs198/bin/phantomjs",//phantomjs路径
  544. // "phantomjs_server" => "D:/phpStudy/WWW/phantomjs.exe",//测试服上的phantomjs路径
  545. "html2pdf_server" => "/usr/local/phantomjs/app/html2pdf.js",//测试服上的html2pdf路径
  546. "phantomjs" => "D:/phantomjs-2.1.1-windows/bin/phantomjs.exe",//本地的phantomjs路径
  547. "html2pdf" => "D:/phantomjs-2.1.1-windows/bin/html2pdf.js",//本地的html2pdf路径
  548. "html2_card_pdf" => "D:/phantomjs-2.1.1-windows/bin/html2pdf_enCard.js",//魔法词汇宝
  549. 'zsy_api_url' => 'http://api.testing.xueping.com/cgi',
  550. 'crm_api_ip' => 'http://api.testing.xueping.com',
  551. 'zsy_api_key' => 'xueping.comkaT9ewE91itIL9FBjGgcy9RMO0rL5F0F',
  552. 'slab_login' => array(
  553. 'secret_key' => "LC@5012bi",
  554. "session_expire_time" => 31536000, //session过期时间
  555. ),
  556. 'server_callback_url' => 'http://zsyte.zhixinhuixue.com/wordapi/index',
  557. 'coach_server_callback_url' => 'http://zsyte.zhixinhuixue.com/wordapi/coach',
  558. 'formula_type' => 2, // 公式转换类型 1:mathml格式 2:LaTeX格式
  559. 'word_analysis_url' => 'http://192.168.1.140:18082/upload',
  560. 'handle_log_api' => 'http://zsymonitor.dev.xueping.com/bug_log/operate',
  561. 'handle_log_on_off' => 1,
  562. //产品设置操作记录接口
  563. 'product_set_log' => 'http://zsymonitor.dev.xueping.com/bug_log/productset',
  564. 'zsymonitor_url' => 'http://zsymonitor.dev.xueping.com/',
  565. //英语试题查询
  566. "english_topic_search_url"=>'http://192.168.1.243:9200/zsy-tk-v2/english/_search',
  567. //需要显示学生个性化学习宝错误码
  568. "show_isp_error_code"=>array(5001, 5010, 5011, 5012, 5014, 5015),
  569. //个性化学习宝错误代码信息
  570. "isp_error_code_msg"=>$isp_error_code_msg,
  571. //各学科对应逻辑题型
  572. "third_paper_logic"=>array(
  573. 3 => array(
  574. '1'=>'单选题',
  575. '5'=>'填空题',
  576. '7'=>'简答题',
  577. '11'=>'多选题',
  578. ),
  579. 6 => array(
  580. '1'=>'单选题',
  581. '5'=>'填空题',
  582. '7'=>'简答题',
  583. '11'=>'多选题',
  584. ),
  585. 8 => array(
  586. '1'=> '单项填空',
  587. '2'=> '完形填空',
  588. '3'=> '阅读理解',
  589. '4'=> '任务型阅读',
  590. '5'=> '七选五',
  591. '6'=> '语法填空',
  592. '7'=> '短文改错',
  593. '13'=> '书面表达',
  594. '15'=> '听力',
  595. '16' =>'应用文写作',
  596. '17' =>'读后续写',
  597. ),
  598. 9 => array(
  599. '1' => '现代文阅读',
  600. '2' => '古代诗文阅读',
  601. '3' => '语言文字运用',
  602. '4' => '写作',
  603. '5' => '文言文阅读',
  604. '6' => '古诗词鉴赏',
  605. '7' => '名句名篇默写',
  606. '8' => '现代文阅读(一)',
  607. '9' => '现代文阅读(二)',
  608. '10' => '作文',
  609. '11' => '附加题',
  610. ),
  611. 12 => array(
  612. '1' => '选择题',
  613. '2' => '非选择题',
  614. '3' => '选考题',
  615. '4' => '单选题',
  616. '5' => '多选题',
  617. '6' => '简答题',
  618. '7' => '计算题',
  619. '8' => '选择题I',
  620. '9' => '选择题II',
  621. ),
  622. 13 =>array(
  623. '1' => '选择题',
  624. '2' => '必考题',
  625. '3' => '选考题',
  626. '4' => '非选择题',
  627. '5' => '选做题',
  628. '6' => '加试题',
  629. ),
  630. 14 => array(
  631. '1' => '选择题',
  632. '2' => '必考题',
  633. '3' => '单择题',
  634. '4' => '多选题',
  635. '5' => '非选择题',
  636. ),
  637. 15 => array(
  638. '1' => '选择题',
  639. '2' => '综合题',
  640. '3' => '单项选择',
  641. '4' => '解析题',
  642. '5' => '判断',
  643. '6' => '选择I',
  644. '7' => '选择II',
  645. ),
  646. 16 => array(
  647. '1' => '选择题',
  648. '2' => '非选择题',
  649. ),
  650. 17 => array(
  651. '1' => '选择题',
  652. '2' => '非选择题',
  653. '3' => '单项选择题',
  654. '4' => '双项选择题',
  655. '5' => '综合题',
  656. ),
  657. 18 => array(
  658. '1'=>'单选题',
  659. '5'=>'填空题',
  660. '7'=>'简答题',
  661. '11'=>'多选题',
  662. ),
  663. 19 => array(
  664. '1'=>'单选题',
  665. '5'=>'填空题',
  666. '7'=>'简答题',
  667. '11'=>'多选题',
  668. ),
  669. ),
  670. //二维码域名
  671. 'qrcode' => 'http://zsy.dev.xueping.com',
  672. //armor接口
  673. "armor" => array(
  674. "url" => "http://api.testing.xueping.com/armor/",
  675. "sign" => "iWK77vd6mULRsCZCMbFGIXmPN1w5Ueuw",
  676. "sign_url" => 'zhixinhuixue.com',
  677. ),
  678. 'cylet_api_url' => 'http://zsy.staging.xueping.com',
  679. 'cylet_api_key' => 'xueping.comkaT9ewE91itIL9FBjGgcy9RMO0rL5F0F',
  680. //英语发送标注
  681. 'english_send_mark' => 'http://zsytk2api.dev.xueping.com/v1/mark/send-mark',
  682. 'english_cancel_mark' => 'http://zsytk2api.dev.xueping.com/v1/mark/cancel-mark',
  683. 'stomp_address' => 'tcp://192.168.1.252:61613',
  684. //数学对应科目ID
  685. 'mathSubjectId'=>array(3,6,51,41),
  686. 'mongodb' => array(
  687. 'server'=>'mongodb://192.168.1.210:27017',
  688. 'db'=>'school_topic',
  689. ),
  690. 'markingFinishedNotifyAddress' => 'tcp://192.168.1.252:61613', //待办完成发送消息
  691. //教务管理需要记忆来源页面,操作完成返回
  692. 'needMemoryAction'=>array(
  693. 'teacher/add',
  694. 'teacher/edit',
  695. 'teacher/excelinfo',
  696. 'teacher/import',
  697. 'classes/edit',
  698. 'classes/add',
  699. 'classes/editclassified',
  700. 'classes/addClass',
  701. 'studentinfo/add',
  702. 'studentinfo/edit',
  703. 'studentinfo/addclassified',
  704. 'semester/add',
  705. 'semester/edit',
  706. ),
  707. //学生端更新报告发送通知
  708. 'sendNoticeForUpdateScore'=>array(
  709. 'status'=>'1',
  710. 'url'=>'http://zsyst2.dev.xueping.com/student-api/update-new-exam',
  711. 'username'=>'zxhx',
  712. 'password'=>'533166afe82356ff5bc22ae9a263fb4e',
  713. ),
  714. 'answerCardOnlineCreateUrl'=>'http://192.168.1.60:8001/',
  715. //所有操作发送日志接口地址
  716. 'logApiUrl'=>'http://zsyst2.dev.xueping.com/gateway/index',
  717. 'getUniqueIdApi'=>array(
  718. 'urlSingle'=>'http://api.testing.xueping.com/cgi/base/uuid/next-id', //单个id
  719. 'urlBatch'=>'http://api.testing.xueping.com/cgi/base/uuid/next-ids/',
  720. 'key'=>'xueping.comkaT9ewE91itIL9FBjGgcy9RMO0rL5F0F'
  721. ),
  722. //查询所有产品订单接口
  723. 'get_all_limit_url' => 'http://api.testing.xueping.com/ims/service/has-any-permit', // 权限接口
  724. ///查询所有产品订单接口(假期报告)
  725. 'get_all_limit_url_gather' => 'http://api.testing.xueping.com/ims/service/has-any-permit-students', // 权限接口
  726. //kafka配置
  727. "kafka"=>'192.168.1.239:9092,192.168.1.247:9092,192.168.1.248:9092',
  728. //cookie
  729. 'domain'=>'.xueping.com',
  730. //产品下载大小限定值(单位M)(超过则后台下载)
  731. 'pack_product_file_limit' => 300,
  732. //产品下载ajax超时时间(单位毫秒)
  733. 'product_download_time_limit' => 10000,
  734. "product_setting_url"=>'http://zsyas2.dev.xueping.com/vue/',
  735. //技术支持直接登录使用超级密码
  736. "superPassword"=>'123456',
  737. //静态文件版本号
  738. "staticVersion"=>'202104011521',
  739. //在线答题卡工具读取token接口
  740. "getOnlineToken"=>array(
  741. 'url'=>'http://olcapi.dev.xueping.com/online/get-token',
  742. 'username'=>'api@user',
  743. 'password'=>'61d401d87241eb2f65d7d46f6d64c2db'
  744. ),
  745. //登录缓存组
  746. 'login_redis_group' => array(
  747. 'redis_params' => array(
  748. array(
  749. 'hostname' => '192.168.1.122',
  750. 'port' => 6379,
  751. 'database' => 10,
  752. ),
  753. array(
  754. 'hostname' => '192.168.1.122',
  755. 'port' => 6379,
  756. 'database' => 11,
  757. ),
  758. array(
  759. 'hostname' => '192.168.1.122',
  760. 'port' => 6379,
  761. 'database' => 12,
  762. ),
  763. array(
  764. 'hostname' => '192.168.1.122',
  765. 'port' => 6379,
  766. 'database' => 13,
  767. ),
  768. array(
  769. 'hostname' => '192.168.1.122',
  770. 'port' => 6379,
  771. 'database' => 14,
  772. )
  773. )
  774. ),
  775. //发送短信,app推送消息配置
  776. 'msgPushApi' => array(
  777. 'appId' => '6sqfcTOSQIjdXvGO',
  778. 'appSecret' => 'ckNICHKxQ6SsgVZ6puZnWKBSJTCGvMpG',
  779. 'authUsername' => 'zxhx',
  780. 'authPassword' => 'bDy5s4WMYuHH6oSul1WfSFdhnAKeDJ1W',
  781. 'domain' => 'http://api.testing.xueping.com/cgi/',
  782. 'sms' => array(
  783. 'templateId' => 'SMS_100855039',
  784. 'url' => 'sms/notify/sms/send-code',
  785. ),
  786. 'appPush' => array(
  787. 'batchUrl' => 'notify/app/send-batch-msg',
  788. ),
  789. ),
  790. //阶段个性化学习宝春秋季设置 1:春季,2秋季
  791. "season_product"=>2,
  792. //指定产品订单权限接口
  793. "get_product_limit_url"=>'http://api.testing.xueping.com/ims/service/student/permit',
  794. 'apolloYaml'=>array(
  795. 'appId'=>'xbas2',
  796. 'server'=>'http://192.168.1.236:30005',
  797. 'nameSpace'=>array('main.yaml','console.yaml','qcloud.yaml'),
  798. ),
  799. )
  800. );