app.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. // +----------------------------------------------------------------------
  12. // | 应用设置
  13. // +----------------------------------------------------------------------
  14. use think\facade\Env;
  15. return [
  16. // 应用地址
  17. 'app_host' => Env::get('app.host', ''),
  18. // 应用的命名空间
  19. 'app_namespace' => '',
  20. // 是否启用路由
  21. 'with_route' => true,
  22. // 是否启用事件
  23. 'with_event' => true,
  24. // 自动多应用模式
  25. 'auto_multi_app' => true,
  26. // 应用映射(自动多应用模式有效)
  27. 'app_map' => ['*'=>'', 'api'=>'api', 'admin'=>'admin','wap'=>'wap'],
  28. // 域名绑定(自动多应用模式有效)
  29. 'domain_bind' => [],
  30. // 禁止URL访问的应用列表(自动多应用模式有效)
  31. 'deny_app_list' => [],
  32. // 默认应用
  33. 'default_app' => 'wap',
  34. // 默认时区
  35. 'default_timezone' => 'Asia/Shanghai',
  36. // 异常页面的模板文件
  37. 'exception_tmpl' => app()->getRootPath() . 'public/static/exception.tpl',
  38. // 错误显示信息,非调试模式有效
  39. 'error_message' => '页面错误!请稍后再试~',
  40. // 显示错误信息
  41. 'show_error_msg' => false,
  42. /// 企业微信机器人
  43. // redis key @deprecated.
  44. 'redis_robot_msg_key' => 'qywechatpush',
  45. 'beanstalk_tube' => 'twong',
  46. // 亚里士多得
  47. 'qy_weixin_robot_aristotle' => 'a17b9d56-b566-404b-904e-4476b95dc8d7',
  48. /// 自动发消息的消息发送者
  49. 'notice_sender' => '运营中心',
  50. 'notice_max' => 30, // 每次最多支持的消息数量
  51. /// 挖矿配置, 每次更新币种后需要重新配置
  52. // 单次挖矿时长
  53. 'mining_symbo' => 'DOGE',
  54. 'mining_time' => [1, 2],
  55. // 每 @mining_sec_unit 挖币 @mining_num_per_unit
  56. 'mining_sec_unit' => 1,
  57. 'mining_num_per_unit' => 0.01,
  58. // 排行榜 banner 750 x 142 首页 banner 750x375 精品推荐滚动图 750x282
  59. 'leader_board_banner' => 'http://twongstatic.shotshock.shop/banner_rank_750x142.jpg',
  60. 'header_cs_1' => 'http://twongstatic.shotshock.shop/headers/customer_service_1.jpg',
  61. 'header_cs_2' => 'http://twongstatic.shotshock.shop/headers/customer_service_2.jpg',
  62. ];