addons.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. 'upgrade' => [
  48. 'shop',
  49. ],
  50. 'user_sidenav_after' => [
  51. 'shop',
  52. 'signin',
  53. ],
  54. 'user_delete_successed' => [
  55. 'third',
  56. ],
  57. 'user_logout_successed' => [
  58. 'third',
  59. ],
  60. 'action_begin' => [
  61. 'third',
  62. ],
  63. ],
  64. 'route' => [
  65. '/shop/$' => 'shop/index/index',
  66. '/shop/a/[:id]' => 'shop/goods/index',
  67. '/shop/p/[:diyname]' => 'shop/page/index',
  68. '/shop/s' => 'shop/search/index',
  69. '/shop/c/[:diyname]' => 'shop/category/index',
  70. '/shop/coupon/[:coupon]' => 'shop/coupon/show',
  71. '/shop/coupon' => 'shop/coupon/index',
  72. '/shop/exchange/[:id]' => 'shop/exchange/show',
  73. '/shop/exchange' => 'shop/exchange/index',
  74. '/third$' => 'third/index/index',
  75. '/third/connect/[:platform]' => 'third/index/connect',
  76. '/third/callback/[:platform]' => 'third/index/callback',
  77. '/third/bind/[:platform]' => 'third/index/bind',
  78. '/third/unbind/[:platform]' => 'third/index/unbind',
  79. ],
  80. 'priority' => [],
  81. 'domain' => '',
  82. ];