saithink.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | saiadmin [ saiadmin快速开发框架 ]
  4. // +----------------------------------------------------------------------
  5. // | Author: sai <1430792918@qq.com>
  6. // +----------------------------------------------------------------------
  7. return [
  8. // 验证码存储模式
  9. 'captcha' => [
  10. // 验证码存储模式 session或者cache
  11. 'mode' => getenv('CAPTCHA_MODE'),
  12. // 验证码过期时间 (秒)
  13. 'expire' => 300,
  14. ],
  15. // excel模板下载路径
  16. 'template' => base_path(). '/plugin/saiadmin/public/template',
  17. // excel导出文件路径
  18. 'export_path' => base_path() . '/plugin/saiadmin/public/export/',
  19. // 文件开启hash验证,开启后上传文件将会判断数据库中是否存在,如果存在直接获取
  20. 'file_hash' => false,
  21. // 路由替换 同一个接口功能有可能有多个路由的,在此处配置,避免相同功能设置多个接口功能
  22. 'route_replace' => [
  23. '/core/configGroup/index' => '/core/config/index',
  24. '/core/configGroup/save' => '/core/config/save',
  25. '/core/configGroup/update' => '/core/config/update',
  26. '/core/configGroup/destroy' => '/core/config/destroy',
  27. '/core/configGroup/read' => '/core/config/read',
  28. '/core/dictData/index' => '/core/dictType/index',
  29. '/core/dictData/save' => '/core/dictType/save',
  30. '/core/dictData/update' => '/core/dictType/update',
  31. '/core/dictData/destroy' => '/core/dictType/destroy',
  32. '/core/dictData/changeStatus' => '/core/dictType/changeStatus',
  33. '/core/dept/addLeader' => '/core/dept/leaders',
  34. '/core/dept/delLeader' => '/core/dept/leaders',
  35. '/tool/code/destroy' => '/tool/code/access',
  36. '/tool/code/save' => '/tool/code/access',
  37. '/tool/code/update' => '/tool/code/access',
  38. '/tool/code/read' => '/tool/code/access',
  39. '/tool/code/loadTable' => '/tool/code/access',
  40. '/tool/code/getTableColumns' => '/tool/code/access',
  41. '/tool/code/preview' => '/tool/code/access',
  42. '/tool/code/generate' => '/tool/code/access',
  43. '/tool/code/generateFile' => '/tool/code/access',
  44. '/tool/code/sync' => '/tool/code/access',
  45. '/tool/crontab/logPageList' => '/tool/crontab/index',
  46. ],
  47. ];