addons.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. return [
  3. 'autoload' => false,
  4. 'hooks' => [
  5. 'admin_nologin' => [
  6. 'adminlogin',
  7. ],
  8. 'module_init' => [
  9. 'adminlogin',
  10. 'apilog',
  11. 'third',
  12. ],
  13. 'response_send' => [
  14. 'apilog',
  15. ],
  16. 'view_filter' => [
  17. 'betterform',
  18. 'shop',
  19. 'third',
  20. ],
  21. 'config_init' => [
  22. 'betterform',
  23. 'nkeditor',
  24. 'third',
  25. ],
  26. 'app_init' => [
  27. 'crontab',
  28. 'shop',
  29. ],
  30. 'epay_config_init' => [
  31. 'epay',
  32. ],
  33. 'addon_action_begin' => [
  34. 'epay',
  35. ],
  36. 'action_begin' => [
  37. 'epay',
  38. 'third',
  39. ],
  40. 'upgrade' => [
  41. 'shop',
  42. ],
  43. 'user_sidenav_after' => [
  44. 'shop',
  45. ],
  46. 'user_delete_successed' => [
  47. 'third',
  48. ],
  49. 'user_logout_successed' => [
  50. 'third',
  51. ],
  52. ],
  53. 'route' => [
  54. '/shop/$' => 'shop/index/index',
  55. '/shop/a/[:id]' => 'shop/goods/index',
  56. '/shop/p/[:diyname]' => 'shop/page/index',
  57. '/shop/s' => 'shop/search/index',
  58. '/shop/c/[:diyname]' => 'shop/category/index',
  59. '/shop/coupon/[:coupon]' => 'shop/coupon/show',
  60. '/shop/coupon' => 'shop/coupon/index',
  61. '/shop/exchange/[:id]' => 'shop/exchange/show',
  62. '/shop/exchange' => 'shop/exchange/index',
  63. '/third$' => 'third/index/index',
  64. '/third/connect/[:platform]' => 'third/index/connect',
  65. '/third/callback/[:platform]' => 'third/index/callback',
  66. '/third/bind/[:platform]' => 'third/index/bind',
  67. '/third/unbind/[:platform]' => 'third/index/unbind',
  68. ],
  69. 'priority' => [],
  70. 'domain' => '',
  71. ];