env.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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=lssystem',
  17. 'main.components.db.username' => 'zhipuzi',
  18. 'main.components.db.password' => 'Zhipuzidev00',
  19. //slave
  20. 'main.components.slaveDb.connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=lssystem',
  21. 'main.components.slaveDb.username' => 'zhipuzi',
  22. 'main.components.slaveDb.password' => 'Zhipuzidev00',
  23. //ADS
  24. 'main.components.ads.connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=lssystem',
  25. 'main.components.ads.username' => 'zhipuzi',
  26. 'main.components.ads.password' => 'Zhipuzidev00',
  27. //用户中心db
  28. 'main.components.userDb.connectionString' => 'mysql:host=rm-bp1tt169ba9yijli6.mysql.rds.aliyuncs.com;dbname=userdb',
  29. 'main.components.userDb.username' => 'userdb',
  30. 'main.components.userDb.password' => 'Hhyz122131',
  31. //平台db
  32. 'main.components.platformDb.connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=platform',
  33. 'main.components.platformDb.username' => 'zhipuzi',
  34. 'main.components.platformDb.password' => 'Zhipuzidev00',
  35. //代理商db
  36. 'main.components.agentDb.connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=agent',
  37. 'main.components.agentDb.username' => 'zhipuzi',
  38. 'main.components.agentDb.password' => 'Zhipuzidev00',
  39. //登录页面
  40. 'main.components.user.loginUrl' => 'https://pf-dev.zhipuzi.com/user/merchant/account/login',
  41. //redis配置
  42. //redis服务器地址
  43. 'redis.host' => 'r-bp1a108df3b69ca4.redis.rds.aliyuncs.com',
  44. //redis端口
  45. 'redis.port' => '6379',
  46. //redis密码
  47. 'redis.password' => 'KS2ihs921s11',
  48. //全局配置
  49. //当前系统环境, dev, test, prod 三种环境,分别对应开发,测试, 生产环境
  50. 'global.env' => 'dev4',
  51. // api地址
  52. 'global.apiBaseUrl' => 'https://lsapi-dev4.zhipuzi.com',
  53. //静态资源url
  54. 'global.assetsUrl' => 'https://assets-ls-dev4.zhipuzi.com',
  55. //wap url
  56. 'global.wapBaseUrl' => 'https://lsh5-dev4.zhipuzi.com',
  57. //后台地址
  58. 'global.consoleUrl' => 'https://ls-dev4.zhipuzi.com',
  59. //front使用的cdn地址
  60. 'global.frontCdnBaseUrl' => 'https://assets-ls-dev4.zhipuzi.com',
  61. //www url
  62. 'global.wwwBaseUrl' => 'https://www-dev4.zhipuzi.com',
  63. //微信营销域名,支持{appid}参数,格式: http://{appid}.yx.zhipuzi.com {appid}会替换成微信公众号appid
  64. 'global.wxYxBaseUrl' => 'https://lsh5-dev4.zhipuzi.com',
  65. //微信开放平台配置
  66. 'global.wechatOpenPlatform.appid' => 'wx1e6803d25f7f5112',
  67. 'global.wechatOpenPlatform.secret' => '4e39e7e109bea82359f92e81be66231f',
  68. //公众号消息校验Token
  69. 'global.wechatOpenPlatform.token' => 'TPWTPbWvaDWYkoBMGgw3qEvC2XoKl46lQ6A6Np8wjqw',
  70. //公众号消息加解密Key
  71. 'global.wechatOpenPlatform.encodingaeskey' => 'vh3aZMH16AXxo3hcmKZAy8rTLpEwIVLvgi3oBbZTnp1',
  72. //智铺子公众号配置
  73. 'global.wechat.appid' => 'wx9213c38c57da2bf6',
  74. 'global.wechat.secret' => '8513b99bfd3c6372f843eae792c82a06',
  75. //平台配置
  76. 'global.platformUrl' => 'https://pf-dev4.zhipuzi.com/',
  77. 'global.platform.h5.url' => 'https://wap-dev4.zhipuzi.com',
  78. 'global.platform.api.url' => 'http://pf-api-dev4.zhipuzi.com',
  79. //智铺子公众号在商家后台的adminId
  80. "global.adminIdForZhipuzi" => "1706",
  81. //乐外卖公众号在商家后台的adminId
  82. "global.adminIdForLewaimai" => "19",
  83. //支付宝开放平台设置
  84. 'global.alipayOpenPlatform.appid' => '2018011501877956',
  85. //消息队列配置
  86. 'global.messageQueue.queues.bigTask' => 'big-task-dev',
  87. 'global.messageQueue.queues.smallTask' => 'small-task-dev',
  88. //子系统域名配置
  89. //进销存
  90. 'global.subSystemBaseUrl.jxc' => 'https://lsjxc-dev4.zhipuzi.com',
  91. 'gateway/api/jxc.api' => 'http://zhipuzi-ls-dev4-jxc-svc',
  92. //阿里云日志服务配置
  93. 'log.aliyunLogHub.endpoint' => 'cn-hangzhou.log.aliyuncs.com',
  94. //阿里云访问秘钥 AccessKeyId
  95. 'log.aliyunLogHub.accessKeyId' => 'LTAIpYffXvFnEUzp',
  96. //阿里云访问秘钥 AccessKeySecret
  97. 'log.aliyunLogHub.accessKey' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  98. //日志库
  99. 'log.aliyunLogHub.logstore' => 'test',
  100. //阿里云access key id
  101. 'opensearch.accessKeyId' => 'LTAIpYffXvFnEUzp',
  102. //阿里云access secret
  103. 'opensearch.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  104. //阿里云opensearch api域名
  105. 'opensearch.endPoint' => 'http://opensearch-cn-hangzhou.aliyuncs.com',
  106. //阿里云opensearch app - 外卖订单
  107. 'opensearch.indexApps.waimaiOrder' => 'lewaimai_order_dev',
  108. //阿里云access key id
  109. 'mns.accessKeyId' => 'LTAIpYffXvFnEUzp',
  110. //阿里云access secret
  111. 'mns.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  112. //阿里云mns api域名
  113. 'mns.endPoint' => 'https://1733013318510961.mns.cn-hangzhou.aliyuncs.com/',
  114. //监控配置
  115. 'statis.db.connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=weixin',
  116. 'statis.db.username' => 'zhipuzi',
  117. 'statis.db.password' => 'Zhipuzidev00',
  118. //天下支付商户号
  119. 'pay.channels.tianxia.mchId' => '1800776625',
  120. //天下支付密钥
  121. 'pay.channels.tianxia.key' => '12345',
  122. //代付API域名
  123. 'pay.channels.tianxia.gateway' => 'http://api.tfb8.com',
  124. //微信、支付宝API域名
  125. 'pay.channels.tianxia.gateway2' => 'http://upay.tfb8.com',
  126. //快服务
  127. 'fastservice.clientId' => 'kfw_dvyw4bcu95jw0bdl',
  128. 'fastservice.key' => 'cee0uaw012tzip60wvvshstbm4l87pva',
  129. 'fastservice.domain' => 'http://open.dev.kfw.net',
  130. 'fastservice.binddomain' => 'http://api.kfw.net',
  131. 'fastservice.merchantLoginUrl' => 'http://open.dev.kfw.net/flow/view/login_pc',
  132. //达达
  133. 'dada.domain' => 'http://newopen.qa.imdada.cn',
  134. //worker 环境参数配置
  135. //php命令路径
  136. 'worker.php' => '/usr/local/bin/php',
  137. //进程运行角色
  138. 'worker.user' => 'www',
  139. //日志路由配置
  140. // 'main.components.log.routes' => array(
  141. // //页面输出性能日志, 网页调试可以打开
  142. // array(
  143. // 'class' => 'CProfileLogRoute',
  144. // ),
  145. // ),
  146. //小程序模版配置
  147. //版本号
  148. 'mini_commit_version.userVersion' => [
  149. "shop" =>"2.11.2.3",//单店
  150. "divpage" =>"2.11.2.2",//微页面
  151. "chainstore"=>"2.11.2.3",//连锁店
  152. ],
  153. //版本描述
  154. 'mini_commit_version.userDesc' => [
  155. "shop" =>"智铺子V2.11.2.3",//单店
  156. "divpage" =>"智铺子V2.11.2.2",//微页面
  157. "chainstore"=>"智铺子V2.11.2.3",//连锁店
  158. ],
  159. //小程序模版id
  160. 'mini_commit_version.templateId' => [
  161. "shop" =>"9",//单店
  162. "divpage" =>"8",//微页面
  163. "chainstore"=>"9",//连锁店
  164. ],
  165. 'global.lewaimai_url' => 'https://api-dev.lewaimai.com',
  166. 'global.lwm_appid' => 'dsadsa12354654dsad2wqewq22ee',
  167. 'lwm_secret' => '#sdfa2d!@#AAAAS#@!',
  168. //windows收银机队列
  169. 'global.windowsMsgQueue' => 'dev-windows-pos-push',
  170. );