project.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. return [
  3. // 系统版本号
  4. 'version' => '1.8.0',
  5. // 官网
  6. 'website' => [
  7. 'name' => env('project.web_name', 'likeadmin'), // 网站名称
  8. 'url' => env('project.web_url', 'www.likeadmin.cn/'), // 网站地址
  9. 'login_image' => 'resource/image/adminapi/default/login_image.png',
  10. 'web_logo' => 'resource/image/adminapi/default/web_logo.jpg', // 网站logo
  11. 'web_favicon' => 'resource/image/adminapi/default/web_favicon.ico', // 网站图标
  12. 'shop_name' => 'likeadmin', // 商城名称
  13. 'shop_logo' => 'resource/image/adminapi/default/shop_logo.png', // 商城图标
  14. 'pc_logo' => 'resource/image/adminapi/default/pc_logo.png', // pc_logo
  15. 'pc_ico' => 'resource/image/adminapi/default/web_favicon.ico', // pc_ico
  16. 'pc_title' => 'likeadmin', // PC网站标题
  17. 'h5_favicon' => 'resource/image/adminapi/default/web_favicon.ico', // 网站图标
  18. ],
  19. // 租户端
  20. 'tenant' => [
  21. 'admin_avatar' => 'resource/image/common/shop_logo.png',
  22. 'name' => env('project.web_name', 'SaaS租户端'), // 网站名称
  23. 'url' => env('project.web_url', 'www.likeadmin.cn/'), // 网站地址
  24. 'login_image' => 'resource/image/tenantapi/default/login_image.png',
  25. 'web_logo' => 'resource/image/tenantapi/default/web_logo.jpg', // 网站logo
  26. 'web_favicon' => 'resource/image/tenantapi/default/web_favicon.ico', // 网站图标
  27. ],
  28. // 平台端
  29. 'platform' => [
  30. 'admin_avatar' => 'resource/image/common/avatar.png',
  31. 'name' => env('project.web_name', 'SaaS平台端'), // 网站名称
  32. 'url' => env('project.web_url', 'www.likeadmin.cn/'), // 网站地址
  33. 'login_image' => 'resource/image/platformapi/default/login_image.png',
  34. 'web_logo_light' => 'resource/image/platformapi/default/web_logo_light.png', // 网站logo
  35. 'web_logo_dark' => 'resource/image/platformapi/default/web_logo_dark.png', // 网站logo
  36. 'web_favicon' => 'resource/image/platformapi/default/web_favicon.ico', // 网站图标
  37. ],
  38. // 后台登录
  39. 'admin_login' => [
  40. // 管理后台登录限制 0-不限制 1-需要限制
  41. 'login_restrictions' => 0,
  42. // 限制密码错误次数
  43. 'password_error_times' => 5,
  44. // 限制禁止多少分钟不能登录
  45. 'limit_login_time' => 30,
  46. ],
  47. // 唯一标识,密码盐、路径加密等
  48. 'unique_identification' => env('project.unique_identification', 'likeadmin'),
  49. // 后台管理员token(登录令牌)配置
  50. 'admin_token' => [
  51. 'expire_duration' => 3600 * 8,//管理后台token过期时长(单位秒)
  52. 'be_expire_duration' => 3600,//管理后台token临时过期前时长,自动续期
  53. ],
  54. // 商城用户token(登录令牌)配置
  55. 'user_token' => [
  56. 'expire_duration' => 3600 * 24 * 30,//用户token过期时长(单位秒)
  57. 'be_expire_duration' => 3600,//用户token临时过期前时长,自动续期
  58. ],
  59. // 列表页
  60. 'lists' => [
  61. 'page_size_max' => 25000,//列表页查询数量限制(列表页每页数量、导出每页数量)
  62. 'page_size' => 25, //默认每页数量
  63. ],
  64. // 各种默认图片
  65. 'default_image' => [
  66. 'admin_avatar' => 'resource/image/adminapi/default/avatar.png',
  67. 'user_avatar' => 'resource/image/adminapi/default/default_avatar.png',
  68. 'qq_group' => 'resource/image/adminapi/default/qq_group.png', // qq群
  69. 'customer_service' => 'resource/image/adminapi/default/customer_service.jpg', // 客服
  70. 'menu_admin' => 'resource/image/adminapi/default/menu_admin.png',// 首页快捷菜单-管理员
  71. 'menu_role' => 'resource/image/adminapi/default/menu_role.png', // 首页快捷菜单-角色
  72. 'menu_dept' => 'resource/image/adminapi/default/menu_dept.png',// 首页快捷菜单-部门
  73. 'menu_dict' => 'resource/image/adminapi/default/menu_dict.png',// 首页快捷菜单-字典
  74. 'menu_generator' => 'resource/image/adminapi/default/menu_generator.png',// 首页快捷菜单-代码生成器
  75. 'menu_auth' => 'resource/image/adminapi/default/menu_auth.png',// 首页快捷菜单-菜单权限
  76. 'menu_web' => 'resource/image/adminapi/default/menu_web.png',// 首页快捷菜单-网站信息
  77. 'menu_file' => 'resource/image/adminapi/default/menu_file.png',// 首页快捷菜单-素材中心
  78. ],
  79. // 文件上传限制 (图片)
  80. 'file_image' => [
  81. 'jpg', 'png', 'gif', 'jpeg', 'webp', 'ico'
  82. ],
  83. // 文件上传限制 (视频)
  84. 'file_video' => [
  85. 'wmv', 'avi', 'mpg', 'mpeg', '3gp', 'mov', 'mp4', 'flv', 'f4v', 'rmvb', 'mkv'
  86. ],
  87. //上传文件的格式 (文件)
  88. 'file_file' => [
  89. 'zip','rar','txt','pdf','doc','docx','xls','xlsx','ppt','pptx','csv','txt','ftr','7z','gz'
  90. ],
  91. // 登录设置
  92. 'login' => [
  93. // 登录方式:1-账号密码登录;2-手机短信验证码登录
  94. 'login_way' => ['1', '2'],
  95. // 注册强制绑定手机 0-关闭 1-开启
  96. 'coerce_mobile' => 1,
  97. // 第三方授权登录 0-关闭 1-开启
  98. 'third_auth' => 1,
  99. // 微信授权登录 0-关闭 1-开启
  100. 'wechat_auth' => 1,
  101. // qq授权登录 0-关闭 1-开启
  102. 'qq_auth' => 0,
  103. // 登录政策协议 0-关闭 1-开启
  104. 'login_agreement' => 1,
  105. ],
  106. // 后台装修
  107. 'decorate' => [
  108. // 底部导航栏样式设置
  109. 'tabbar_style' => ['default_color' => '#999999', 'selected_color' => '#4173ff'],
  110. ],
  111. // 租户后台管理员token(登录令牌)配置
  112. 'tenant_token' => [
  113. 'expire_duration' => 3600 * 8,//管理后台token过期时长(单位秒)
  114. 'be_expire_duration' => 3600,//管理后台token临时过期前时长,自动续期
  115. ],
  116. 'user_website' => 'https://user.kyjlkj.com/#/',//用户扫码域名
  117. 'work_sn_key' => 'sdfas4546',//工单key
  118. ];