site.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. class UserApiModuleSite extends WeModuleSite {
  8. public $tablename = 'userapi_reply';
  9. private $predefines = array(
  10. 'weather.php' => array(
  11. 'title' => '城市天气',
  12. 'description' => '"城市名+天气", 如: "北京天气"',
  13. 'keywords' => array(
  14. array('3', '^.+天气$')
  15. )
  16. ),
  17. 'baike.php' => array(
  18. 'title' => '百度百科',
  19. 'description' => '"百科+查询内容" 或 "定义+查询内容", 如: "百科姚明", "定义自行车"',
  20. 'keywords' => array(
  21. array('3', '^百科.+$'),
  22. array('3', '^定义.+$'),
  23. )
  24. ),
  25. 'translate.php' => array(
  26. 'title' => '即时翻译',
  27. 'description' => '"@查询内容(中文或英文)"',
  28. 'keywords' => array(
  29. array('3', '^@.+$'),
  30. )
  31. ),
  32. 'calendar.php' => array(
  33. 'title' => '今日老黄历',
  34. 'description' => '"日历", "万年历", "黄历"或"几号"',
  35. 'keywords' => array(
  36. array('1', '日历'),
  37. array('1', '万年历'),
  38. array('1', '黄历'),
  39. array('1', '几号'),
  40. )
  41. ),
  42. 'news.php' => array(
  43. 'title' => '看新闻',
  44. 'description' => '"新闻"',
  45. 'keywords' => array(
  46. array('1', '新闻'),
  47. )
  48. ),
  49. 'express.php' => array(
  50. 'title' => '快递查询',
  51. 'description' => '"快递+单号", 如: "申通1200041125"',
  52. 'keywords' => array(
  53. array('3', '^(申通|圆通|中通|汇通|韵达|顺丰|EMS) *[a-z0-9]{1,}$')
  54. )
  55. ),
  56. );
  57. }