main.testing.public.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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. 'errorHandler' => array(
  80. // use 'site/error' action to display errors
  81. 'errorAction' => 'site/error',
  82. ),
  83. /*'session' => array(
  84. 'class' => 'system.web.CDbHttpSession',
  85. 'connectionID' => 'businessDb',
  86. 'sessionTableName' => 'coach_session',
  87. 'timeout' => '864000',
  88. ),*/
  89. 'session' => array(
  90. 'class' => 'CCacheHttpSession',
  91. 'autoStart' => true,
  92. 'cacheID' => 'sessionCache', // we only use the sessionCache to store the session
  93. 'cookieMode' => 'only',
  94. 'timeout' => 86400,
  95. ),
  96. ),
  97. // application-level parameters that can be accessed
  98. // using Yii::app()->params['paramName']
  99. 'params' => array(
  100. //错题本、提分方案接口地址 不同键值对应不同的业务库database表group_id
  101. 'improve_url' => array(),
  102. 'static_url' => array(),
  103. 'merge_topic_tpl1' => array(2012, 2013, 2014, 2015),
  104. 'merge_topic_tpl2' => array(2016, 2017, 2018, 2019),
  105. 'merge_topic_tpl3' => array(1012, 1013, 1014, 1015),
  106. 'merge_topic_tpl4' => array(1016, 1017, 1018, 1019),
  107. 'merge_topic_tpl5' => array(3016, 3017, 3018, 3019),
  108. 'merge_topic_tpl6' => array(3012, 3013, 3014, 3015),
  109. 'merge_topic_tpl7' => array(4016, 4017, 4018, 4019),
  110. 'merge_topic_tpl8' => array(4012, 4013, 4014, 4015),
  111. 'print_topic_tpl' => array(8, 108),
  112. //自定义模板类型ID
  113. "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),
  114. // 接口请求验证账号
  115. 'api_verify_username' => 'zxhx',
  116. 'api_verify_password' => '533166afe82356ff5bc22ae9a263fb4e',
  117. 'APPID' => 'wx0438a8851241b563',
  118. 'secret' => '9f2eeab974e8d51ad2f3bce247677943',
  119. 'notification_host' => 'http://wyprwx.zhixinhuixue.com',
  120. 'redis_on_off' => 1,
  121. 'redis_expires' => 7000,
  122. 'weixin_realm' => 'http://zsy.zhixinhuixue.com',
  123. 'pay_product_info' => '知心慧学',
  124. //ims接口地址配置
  125. "ims" => array(
  126. "url" => "http://api.testing.xueping.com/ims/",
  127. //"url" => "http://192.168.1.77:8084/ims/",
  128. "sign" => "kaT9ewE91itIL9FBjGgcy9RMO0rL5F0F",
  129. "sign_url" => 'xueping.com',
  130. ),
  131. "api_host" => "http://zsyapi.dev.xueping.com",
  132. "subjectId" => array(
  133. 3 => '数学',
  134. 6 => '数学',
  135. 8 => '英语',
  136. 9 => '语文',
  137. 12 => '物理',
  138. 13 => '化学',
  139. 14 => '生物',
  140. 15 => '政治',
  141. 16 => '历史',
  142. 17 => '地理',
  143. 18 => '理综',
  144. 19 => '文综',
  145. 20 => '其它',
  146. 51 => '数学',
  147. ),
  148. //题库
  149. "topic_store" => array(
  150. "topic_host" => "http://zsytk.zhixinhuixue.com",
  151. "answer_pic_url" => "http://answstatic.xueping365.com",
  152. "topic_append" => "topic/batchAll",
  153. "topic_field" => "topicIds",
  154. "material_append" => "textbook/details",
  155. "material_field" => "textbookIds",
  156. "chapter_append" => "textbook/chapter",
  157. "chapter_field" => "chapterId",
  158. "module_append" => "textbook/module",
  159. "module_field" => "moduleId",
  160. ),
  161. // 客户端加密
  162. "app_salt" => "LC@5012bi",
  163. "qrcode_path" => "upload/qrcodes/",
  164. 'mt_prefix' => 'http://mt.zhixinhuixue.net/cgi-bin/mathtex.cgi?',
  165. // 教师端 Url
  166. 'te_url' => 'http://zsyte.testing.xueping.com/',
  167. 'get_limit_url' => 'http://api.testing.xueping.com/ims/service/permit', // 权限接口
  168. 'limit_open' => true,//是否打开权限
  169. 'order_open' => true,//是否打开订单入口
  170. 'fdfs_open' => true,//是否打开fdfs
  171. 'handler_log' => 1,
  172. 'topic_type' => array(
  173. 'ke' => array(1, 2, 3, 11),
  174. 'zu' => array(5, 7, 17, 12, 13, 14, 15, 16),
  175. 'xu' => array('27')
  176. ),
  177. // 客户端加密
  178. 'ruanyun_exam_interface' => 'http://59.53.183.217:30100/Exam/ReceiveExamInfo',
  179. "phantomjs_server" => "/usr/local/phantomjs211/bin/phantomjs",//测试服上的phantomjs路径
  180. "phantomjs_server_en" => "/usr/local/phantomjs198/bin/phantomjs",//phantomjs路径
  181. "html2pdf_server" => "/usr/local/phantomjs/app/html2pdf.js",//测试服上的html2pdf路径
  182. "phantomjs" => "D:/phantomjs-2.1.1-windows/bin/phantomjs.exe",//本地的phantomjs路径
  183. "html2pdf" => "D:/phantomjs-2.1.1-windows/bin/html2pdf.js",//本地的html2pdf路径
  184. // 'zsy_api_url' => 'http://zsy.dev.xueping.com/cgi',
  185. 'zsy_api_url' => 'http://api.testing.xueping.com/cgi',
  186. 'crm_api_ip' => 'http://zsy.dev.xueping.com',
  187. 'zsy_api_key' => 'xueping.comkaT9ewE91itIL9FBjGgcy9RMO0rL5F0F',
  188. 'slab_login' => array(
  189. 'secret_key' => "LC@5012bi",
  190. "session_expire_time" => 31536000, //session过期时间
  191. ),
  192. 'server_callback_url' => 'http://zsyte.zhixinhuixue.com/wordapi/index',
  193. 'coach_server_callback_url' => 'http://zsyte.zhixinhuixue.com/wordapi/coach',
  194. 'formula_type' => 2, // 公式转换类型 1:mathml格式 2:LaTeX格式
  195. 'word_analysis_url' => 'http://192.168.1.140:18082/upload',
  196. 'handle_log_api' => 'http://zsymonitor.dev.xueping.com/bug_log/operate',
  197. //产品设置操作记录接口
  198. 'product_set_log' => 'http://zsymonitor.dev.xueping.com/bug_log/productset',
  199. 'handle_log_on_off' => 1,
  200. 'zsymonitor_url' => 'http://zsymonitor.dev.xueping.com/',
  201. //英语试题查询
  202. "english_topic_search_url"=>'http://192.168.1.243:9200/zsy-tk-v2/english/_search',
  203. //需要显示学生个性化学习宝错误码
  204. "show_isp_error_code"=>array(5001, 5010, 5011, 5012, 5014, 5015),
  205. //个性化学习宝错误代码信息
  206. "isp_error_code_msg"=>$isp_error_code_msg,
  207. //各学科对应逻辑题型
  208. "third_paper_logic"=>array(
  209. 3 => array(
  210. '1'=>'单选题',
  211. '5'=>'填空题',
  212. '7'=>'简答题',
  213. '11'=>'多选题',
  214. ),
  215. 6 => array(
  216. '1'=>'单选题',
  217. '5'=>'填空题',
  218. '7'=>'简答题',
  219. '11'=>'多选题',
  220. ),
  221. 8 => array(
  222. '1'=> '单项填空',
  223. '2'=> '完形填空',
  224. '3'=> '阅读理解',
  225. '4'=> '任务型阅读',
  226. '5'=> '七选五',
  227. '6'=> '语法填空',
  228. '7'=> '短文改错',
  229. '13'=> '书面表达',
  230. '15'=> '听力',
  231. '16' =>'应用文写作',
  232. '17' =>'读后续写',
  233. ),
  234. 9 => array(
  235. '1' => '现代文阅读',
  236. '2' => '古代诗文阅读',
  237. '3' => '语言文字运用',
  238. '4' => '写作',
  239. '5' => '文言文阅读',
  240. '6' => '古诗词鉴赏',
  241. '7' => '名句名篇默写',
  242. '8' => '现代文阅读(一)',
  243. '9' => '现代文阅读(二)',
  244. '10' => '作文',
  245. '11' => '附加题',
  246. ),
  247. 12 => array(
  248. '1' => '选择题',
  249. '2' => '非选择题',
  250. '3' => '选考题',
  251. '4' => '单选题',
  252. '5' => '多选题',
  253. '6' => '简答题',
  254. '7' => '计算题',
  255. '8' => '选择题I',
  256. '9' => '选择题II',
  257. ),
  258. 13 =>array(
  259. '1' => '选择题',
  260. '2' => '必考题',
  261. '3' => '选考题',
  262. '4' => '非选择题',
  263. '5' => '选做题',
  264. '6' => '加试题',
  265. ),
  266. 14 => array(
  267. '1' => '选择题',
  268. '2' => '必考题',
  269. '3' => '单择题',
  270. '4' => '多选题',
  271. '5' => '非选择题',
  272. ),
  273. 15 => array(
  274. '1' => '选择题',
  275. '2' => '综合题',
  276. '3' => '单项选择',
  277. '4' => '解析题',
  278. '5' => '判断',
  279. '6' => '选择I',
  280. '7' => '选择II',
  281. ),
  282. 16 => array(
  283. '1' => '选择题',
  284. '2' => '非选择题',
  285. ),
  286. 17 => array(
  287. '1' => '选择题',
  288. '2' => '非选择题',
  289. '3' => '单项选择题',
  290. '4' => '双项选择题',
  291. '5' => '综合题',
  292. ),
  293. 18 => array(
  294. '1'=>'单选题',
  295. '5'=>'填空题',
  296. '7'=>'简答题',
  297. '11'=>'多选题',
  298. ),
  299. 19 => array(
  300. '1'=>'单选题',
  301. '5'=>'填空题',
  302. '7'=>'简答题',
  303. '11'=>'多选题',
  304. ),
  305. ),
  306. //二维码域名
  307. 'qrcode' => 'http://zsy.dev.xueping.com',
  308. //armor接口
  309. "armor" => array(
  310. "url" => "http://api.testing.xueping.com/armor/",
  311. "sign" => "iWK77vd6mULRsCZCMbFGIXmPN1w5Ueuw",
  312. "sign_url" => 'zhixinhuixue.com',
  313. ),
  314. 'cylet_api_url' => 'http://zsy.dev.xueping.com',
  315. 'cylet_api_key' => 'xueping.comkaT9ewE91itIL9FBjGgcy9RMO0rL5F0F',
  316. //英语发送标注
  317. 'english_send_mark' => 'http://zsytk2api.testing.xueping.com/v1/mark/send-mark',
  318. 'english_cancel_mark' => 'http://zsytk2api.testing.xueping.com/v1/mark/cancel-mark',
  319. 'stomp_address' => 'tcp://192.168.1.252:61613',
  320. //数学对应科目ID
  321. 'mathSubjectId'=>array(3,6,51),
  322. 'mongodb' => array(
  323. 'server'=>'mongodb://192.168.1.210:27017',
  324. 'db'=>'school_topic',
  325. ),
  326. 'markingFinishedNotifyAddress' => 'tcp://192.168.1.252:61613', //待办完成发送消息
  327. //教务管理需要记忆来源页面,操作完成返回
  328. 'needMemoryAction'=>array(
  329. 'teacher/add',
  330. 'teacher/edit',
  331. 'teacher/excelinfo',
  332. 'teacher/import',
  333. 'classes/edit',
  334. 'classes/add',
  335. 'classes/editclassified',
  336. 'classes/addClass',
  337. 'studentinfo/add',
  338. 'studentinfo/edit',
  339. 'studentinfo/addclassified',
  340. 'semester/add',
  341. 'semester/edit',
  342. ),
  343. //学生端更新报告发送通知
  344. 'sendNoticeForUpdateScore'=>array(
  345. 'status'=>'1',
  346. 'url'=>'http://zsyst2.dev.xueping.com/student-api/update-new-exam',
  347. 'username'=>'zxhx',
  348. 'password'=>'533166afe82356ff5bc22ae9a263fb4e',
  349. ),
  350. 'answerCardOnlineCreateUrl'=>'http://192.168.1.60:8001/',
  351. //所有操作发送日志接口地址
  352. 'logApiUrl'=>'http://zsyst.testing.xueping.com/gateway/index',
  353. 'getUniqueIdApi'=>array(
  354. 'urlSingle'=>'http://api.testing.xueping.com/cgi/base/uuid/next-id', //单个id
  355. 'urlBatch'=>'http://api.testing.xueping.com/cgi/base/uuid/next-ids/',
  356. 'key'=>'xueping.comkaT9ewE91itIL9FBjGgcy9RMO0rL5F0F'
  357. ),
  358. //查询所有产品订单接口
  359. 'get_all_limit_url' => 'http://api.testing.xueping.com/ims/service/has-any-permit', // 权限接口
  360. //查询所有产品订单接口(假期报告)
  361. 'get_all_limit_url_gather' => 'http://api.testing.xueping.com/ims/service/has-any-permit-students', // 权限接口
  362. //kafka配置
  363. "kafka"=>'192.168.1.239:9092,192.168.1.247:9092,192.168.1.248:9092',
  364. //产品设置
  365. "product_set"=>'http://zsyas2nx.testing.xueping.com/',
  366. //cookie
  367. 'domain'=>'.xueping.com',
  368. //域名
  369. "realm_name"=>'http://zsyas2.testing.xueping.com/',
  370. //产品下载大小限定值(单位M)(超过则后台下载)
  371. 'pack_product_file_limit' => 300,
  372. //产品下载ajax超时时间(单位毫秒)
  373. 'product_download_time_limit' => 10000,
  374. //产品设置
  375. "product_setting_url"=>'http://zsyas2.testing.xueping.com/vue/',
  376. //技术支持直接登录使用超级密码
  377. "superPassword"=>'Xll2021@',
  378. ),
  379. );