config-product.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: leo
  5. * Date: 2018/2/23
  6. * Time: 下午3:53
  7. */
  8. return [
  9. 'preparePerfLimit' => true, // 预计算月业绩,测试环境周一到周日都能看,正式环境只能周一看true为周一到周日都能看
  10. // 奖金结算系统主库
  11. 'db' => [
  12. // 数据库连接
  13. 'dsn' => 'mysql:host=127.0.0.1;dbname=ngds_test',
  14. // 数据库用户名
  15. 'username' => 'root',
  16. // 数据库密码
  17. 'password' => 'mypass',
  18. // 数据库字符集
  19. 'charset' => 'utf8',
  20. // 数据表前缀
  21. 'tablePrefix' => 'AR_',
  22. ],
  23. // 日志库
  24. 'dbLog' => [
  25. 'dsn' => 'mongodb://localhost:27017/aikang_log_db',
  26. 'options' => [
  27. "username" => "aikang_bonus_log_user",
  28. "password" => "mongo@db.useron2020"
  29. ],
  30. ],
  31. // 奖金结算专属库(为不占用主库资源,不影响会员正常业务,该库专门用于奖金结算,可单独架设,需与主库做主从同步)
  32. 'dbCalc' => [
  33. 'dsn' => 'mysql:host=127.0.0.1;dbname=ngds_test',
  34. 'username' => 'root',
  35. 'password' => 'mypass',
  36. 'charset' => 'utf8',
  37. 'tablePrefix' => 'AR_',
  38. ],
  39. // 移动点位时专用的点位备份库(可用来查看各个时期的会员点位情况)
  40. 'dbNetPoint' => [
  41. 'dsn' => 'mysql:host=127.0.0.1;dbname=ngds_test',
  42. 'username' => 'root',
  43. 'password' => 'mypass',
  44. 'charset' => 'utf8',
  45. 'tablePrefix' => 'AR_',
  46. ],
  47. // 系统从库
  48. 'slavesDb' => [
  49. 'slaveConfig' => [
  50. 'username' => 'root',
  51. 'password' => 'mypass',
  52. 'charset' => 'utf8',
  53. 'tablePrefix' => 'AR_',
  54. 'attributes' => [
  55. PDO::ATTR_TIMEOUT => 10, // 从库超时切换间隔时间
  56. ],
  57. ],
  58. 'slaves' => [
  59. ['dsn' => 'mysql:host=127.0.0.1;dbname=ngds_test'],
  60. // 其他奖金结算系统的从库从下面继续添加配置
  61. ],
  62. ],
  63. // Token专用 Redis 库
  64. 'tokenRedis' => [
  65. // 服务器
  66. 'hostname' => '127.0.0.1',
  67. //'username' => '',
  68. // 端口
  69. 'port' => 6379,
  70. // 密码
  71. //'password' => '',
  72. // 库索引
  73. 'database' => 0,
  74. ],
  75. // 缓存专用 Redis 库
  76. 'cacheRedis' => [
  77. 'hostname' => '127.0.0.1',
  78. //'username' => '',
  79. 'port' => 6379,
  80. //'password' => '',
  81. 'database' => 0,
  82. ],
  83. // 其他数据 Redis 库
  84. 'otherRedis' => [
  85. 'hostname' => '127.0.0.1',
  86. //'username' => '',
  87. 'port' => 6379,
  88. //'password' => '',
  89. 'database' => 0,
  90. ],
  91. // 远程静态上传服务器地址 @todo 明哥提供
  92. //'remoteUploadHost' => 'http://ar.upload.ming',
  93. 'remoteUploadHost' => 'http://localhost:9017',
  94. // 远程静态上传服务器地址
  95. // 'idCardVerify' => [
  96. // 'host' => 'http://121.40.238.29:20000',
  97. // 'clientId' => '122371433052508160',
  98. // ],
  99. 'idCardVerify' => [
  100. 'host' => 'https://pay.lingyonggong.cn',
  101. 'clientId' => '482924578939613184',
  102. ],
  103. // swoole异步服务器及端口
  104. 'swooleTimerConfig' => [
  105. 'host' => '127.0.0.1',
  106. 'port' => '9513',
  107. ],
  108. 'swooleClientConfig' => [
  109. 'host' => '127.0.0.1',
  110. 'port' => '9513',
  111. ],
  112. // swoole奖金服务器及端口
  113. 'swooleBonusClientConfig' => [
  114. 'host' => '127.0.0.1',
  115. 'port' => '9513',
  116. ],
  117. ];