app.php 3.1 KB

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