addons.php 2.2 KB

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