main.testing.php 29 KB

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