addons.php 915 B

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