app.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. // 部署的云服务器或 VPS IP 地址
  43. 'server_ip' => '81.70.81.74',
  44. // 微信提现开关
  45. 'extract_weixin_enabled' => true,
  46. 'extract_bank_enabled' => true,
  47. 'extract_alipay_enabled' => false,
  48. /// 企业微信机器人
  49. // redis key @deprecated.
  50. 'redis_robot_msg_key' => 'qywechatpush',
  51. 'beanstalk_tube' => 'twong',
  52. // 亚里士多得
  53. 'qy_weixin_robot_aristotle' => 'a17b9d56-b566-404b-904e-4476b95dc8d7',
  54. /// 自动发消息的消息发送者
  55. 'notice_sender' => '运营中心',
  56. 'notice_max' => 30, // 每次最多支持的消息数量
  57. /// 挖矿配置, 每次更新币种后需要重新配置
  58. // 单次挖矿时长
  59. 'mining_symbo' => 'DOGE',
  60. 'mining_time' => [1, 2],
  61. // 每 @mining_sec_unit 挖币 @mining_num_per_unit
  62. 'mining_sec_unit' => 1,
  63. 'mining_num_per_unit' => 0.01,
  64. // 排行榜 banner 750 x 142 首页 banner 750x375 精品推荐滚动图 750x282
  65. 'leader_board_banner' => 'http://twongstatic.shotshock.shop/banner_rank_750x142.jpg',
  66. 'header_cs_1' => 'http://twongstatic.shotshock.shop/headers/customer_service_1.jpg',
  67. 'header_cs_2' => 'http://twongstatic.shotshock.shop/headers/customer_service_2.jpg',
  68. ];