addons.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. return [
  3. 'autoload' => false,
  4. 'hooks' => [
  5. 'app_init' => [
  6. 'cos',
  7. 'epay',
  8. 'qrcode',
  9. ],
  10. 'upload_config_init' => [
  11. 'cos',
  12. ],
  13. 'upload_delete' => [
  14. 'cos',
  15. ],
  16. 'user_sidenav_after' => [
  17. 'poster',
  18. ],
  19. 'config_init' => [
  20. 'qcloudsms',
  21. 'third',
  22. ],
  23. 'sms_send' => [
  24. 'qcloudsms',
  25. ],
  26. 'sms_notice' => [
  27. 'qcloudsms',
  28. ],
  29. 'sms_check' => [
  30. 'qcloudsms',
  31. ],
  32. ],
  33. 'route' => [
  34. '/example$' => 'example/index/index',
  35. '/example/d/[:name]' => 'example/demo/index',
  36. '/example/d1/[:name]' => 'example/demo/demo1',
  37. '/example/d2/[:name]' => 'example/demo/demo2',
  38. '/qrcode$' => 'qrcode/index/index',
  39. '/qrcode/build$' => 'qrcode/index/build',
  40. '/third$' => 'third/index/index',
  41. '/third/connect/[:platform]' => 'third/index/connect',
  42. '/third/callback/[:platform]' => 'third/index/callback',
  43. '/third/bind/[:platform]' => 'third/index/bind',
  44. '/third/unbind/[:platform]' => 'third/index/unbind',
  45. ],
  46. 'priority' => [],
  47. 'domain' => '',
  48. ];