env.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?php
  2. /**
  3. * 环境参数例子
  4. * 格式说明:
  5. * 配置均为kv形式
  6. * key的格式: 文件名.key1[.keyN]
  7. * 例子:
  8. * 需要覆盖main配置文件db的connectionString参数
  9. * array(
  10. * //数据库链接字符串
  11. * 'main.components.db.connectionString' => 'xxxxxx'
  12. * )
  13. */
  14. return array(
  15. //rds配置
  16. 'main.components.db.connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=platform',
  17. 'main.components.db.username' => 'zhipuzi',
  18. 'main.components.db.password' => 'Zhipuzidev00',
  19. //登录页面
  20. 'main.components.user.loginUrl' => 'https://www-dev4.zhipuzi.com/login.html',
  21. //redis配置
  22. //redis服务器地址
  23. 'redis.host' => 'r-bp1a108df3b69ca4.redis.rds.aliyuncs.com',
  24. //redis端口
  25. 'redis.port' => '6379',
  26. //redis密码
  27. 'redis.password' => 'KS2ihs921s11',
  28. //全局配置
  29. //当前系统环境, dev, test, prod 三种环境,分别对应开发,测试, 生产环境
  30. 'global.env' => 'dev',
  31. // api地址
  32. 'global.apiBaseUrl' => 'https://pf-api-dev4.zhipuzi.com',
  33. //静态资源url
  34. 'global.assetsUrl' => 'https://pf-assets-dev4.zhipuzi.com',
  35. //wap url
  36. 'global.wapBaseUrl' => 'https://wap-dev4.zhipuzi.com',
  37. //后台地址
  38. 'global.consoleUrl' => 'https://console-dev4.zhipuzi.com',
  39. //front使用的cdn地址
  40. 'global.frontCdnBaseUrl' => 'https://pf-assets-dev4.zhipuzi.com',
  41. //www url
  42. 'global.wwwBaseUrl' => 'https://www-dev4.zhipuzi.com',
  43. //微信营销域名,支持{appid}参数,格式: http://{appid}.yx.zhipuzi.com {appid}会替换成微信公众号appid
  44. 'global.wxYxBaseUrl' => 'https://wap-dev4.zhipuzi.com',
  45. //官网域名
  46. 'global.officialWebsiteUrl' => 'http://www-dev4.zhipuzi.com',
  47. //admin系统url
  48. "global.adminUrl" => "https://admin-dev4.zhipuzi.com",
  49. //微信开放平台配置
  50. 'global.wechatOpenPlatform.appid' => 'wx1e6803d25f7f5112',
  51. 'global.wechatOpenPlatform.secret' => '4e39e7e109bea82359f92e81be66231f',
  52. //公众号消息校验Token
  53. 'global.wechatOpenPlatform.token' => 'TPWTPbWvaDWYkoBMGgw3qEvC2XoKl46lQ6A6Np8wjqw',
  54. //公众号消息加解密Key
  55. 'global.wechatOpenPlatform.encodingaeskey' => 'vh3aZMH16AXxo3hcmKZAy8rTLpEwIVLvgi3oBbZTnp1',
  56. //智铺子公众号配置
  57. 'global.wechat.appid' => 'wx9213c38c57da2bf6',
  58. 'global.wechat.secret' => '8513b99bfd3c6372f843eae792c82a06',
  59. //智铺子公众号在商家后台的adminId
  60. "global.adminIdForZhipuzi" => "1706",
  61. //乐外卖公众号在商家后台的adminId
  62. "global.adminIdForLewaimai" => "19",
  63. //支付宝开放平台设置
  64. 'global.alipayOpenPlatform.appid' => '2018011501877956',
  65. //餐饮系统内网h5域名
  66. 'global.business_h5_internal_host.repast' => 'https://cyh5-dev4.zhipuzi.com',
  67. //零售系统内外h5域名
  68. 'global.business_h5_internal_host.retail' => 'https://lsh5-dev4.zhipuzi.com',
  69. //餐饮系统内网api域名
  70. 'global.business_h5_internal_host.repastapi' => 'https://cyapi-dev4.zhipuzi.com',
  71. //零售系统内外api域名
  72. 'global.business_h5_internal_host.retailapi' => 'https://lsapi-dev4.zhipuzi.com',
  73. //消息队列配置
  74. 'global.messageQueue.queues.bigTask' => 'big-task-dev',
  75. 'global.messageQueue.queues.smallTask' => 'small-task-dev',
  76. //子系统域名配置
  77. //进销存
  78. 'global.subSystemBaseUrl.jxc' => 'https://jxc-dev4.zhipuzi.com',
  79. 'gateway/api/jxc.api' => 'http://127.0.0.1:12332',
  80. //阿里云日志服务配置
  81. 'log.aliyunLogHub.endpoint' => 'cn-hangzhou.log.aliyuncs.com',
  82. //阿里云访问秘钥 AccessKeyId
  83. 'log.aliyunLogHub.accessKeyId' => 'LTAIpYffXvFnEUzp',
  84. //阿里云访问秘钥 AccessKeySecret
  85. 'log.aliyunLogHub.accessKey' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  86. //日志库
  87. 'log.aliyunLogHub.logstore' => 'platform-dev4',
  88. //阿里云access key id
  89. 'opensearch.accessKeyId' => 'LTAIpYffXvFnEUzp',
  90. //阿里云access secret
  91. 'opensearch.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  92. //阿里云opensearch api域名
  93. 'opensearch.endPoint' => 'http://opensearch-cn-hangzhou.aliyuncs.com',
  94. //阿里云opensearch app - 外卖订单
  95. 'opensearch.indexApps.waimaiOrder' => 'lewaimai_order_dev',
  96. //阿里云access key id
  97. 'mns.accessKeyId' => 'LTAIpYffXvFnEUzp',
  98. //阿里云access secret
  99. 'mns.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  100. //阿里云mns api域名
  101. 'mns.endPoint' => 'http://1733013318510961.mns.cn-hangzhou-internal.aliyuncs.com/',
  102. //监控配置
  103. 'statis.db.connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=platform',
  104. 'statis.db.username' => 'zhipuzi',
  105. 'statis.db.password' => 'Zhipuzidev00',
  106. //天下支付商户号
  107. 'pay.channels.tianxia.mchId' => '1800776625',
  108. //天下支付密钥
  109. 'pay.channels.tianxia.key' => '12345',
  110. //代付API域名
  111. 'pay.channels.tianxia.gateway' => 'http://api.tfb8.com',
  112. //微信、支付宝API域名
  113. 'pay.channels.tianxia.gateway2' => 'http://upay.tfb8.com',
  114. //快服务
  115. 'fastservice.clientId' => 'kfw_dvyw4bcu95jw0bdl',
  116. 'fastservice.key' => 'cee0uaw012tzip60wvvshstbm4l87pva',
  117. 'fastservice.domain' => 'http://open.dev.kfw.net',
  118. 'fastservice.merchantLoginUrl' => 'http://open.dev.kfw.net/flow/view/login_pc',
  119. //达达
  120. 'dada.domain' => 'http://newopen.qa.imdada.cn',
  121. //worker 环境参数配置
  122. //php命令路径
  123. 'worker.php' => '/usr/local/bin/php',
  124. //进程运行角色
  125. 'worker.user' => 'www',
  126. //日志路由配置
  127. // 'main.components.log.routes' => array(
  128. // //页面输出性能日志, 网页调试可以打开
  129. // array(
  130. // 'class' => 'CProfileLogRoute',
  131. // ),
  132. // ),
  133. //小程序模版配置
  134. //版本号
  135. 'mini_commit_version.userVersion' => '2.5.0',
  136. //版本描述
  137. 'mini_commit_version.userDesc' => '小程序基础Beta版本',
  138. //小程序模版id
  139. 'mini_commit_version.templateId' => '1',
  140. 'global.lewaimai_url' => 'https://api-dev.lewaimai.com',
  141. 'global.lwm_appid' => 'dsadsa12354654dsad2wqewq22ee',
  142. 'lwm_secret' => '#sdfa2d!@#AAAAS#@!',
  143. //餐饮营销域名
  144. 'global.business_host.cyYxBaseUrl' => 'https://cyh5-dev4.zhipuzi.com',
  145. //零售营销域名
  146. 'global.business_host.lsYxBaseUrl' => 'https://lsh5-dev4.zhipuzi.com',
  147. 'global.business_host.cyapi' => 'https://cyapi-dev4.zhipuzi.com',
  148. 'global.business_host.lsapi' => 'https://lsapi-dev4.zhipuzi.com',
  149. );