main.production.php 33 KB

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