env.php 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=lssystem',
  17. 'main.components.db.username' => 'zhipuzi',
  18. 'main.components.db.password' => 'Zhipuzitest00',
  19. //slave
  20. 'main.components.slaveDb.connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=lssystem',
  21. 'main.components.slaveDb.username' => 'zhipuzi',
  22. 'main.components.slaveDb.password' => 'Zhipuzitest00',
  23. //ADS
  24. 'main.components.ads.connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=lssystem',
  25. 'main.components.ads.username' => 'zhipuzi',
  26. 'main.components.ads.password' => 'Zhipuzitest00',
  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. //代理商数据库
  32. 'main.components.agentDb.connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=agent',
  33. 'main.components.agentDb.username' => 'zhipuzi',
  34. 'main.components.agentDb.password' => 'Zhipuzitest00',
  35. //平台db
  36. 'main.components.platformDb.connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=platform',
  37. 'main.components.platformDb.username' => 'zhipuzi',
  38. 'main.components.platformDb.password' => 'Zhipuzitest00',
  39. //登录页面
  40. 'main.components.user.loginUrl' => 'https://pf-test.zhipuzi.com/user/merchant/account/login',
  41. //redis配置
  42. //redis服务器地址
  43. 'redis.host' => 'r-bp1405387a9e6614.redis.rds.aliyuncs.com',
  44. //redis端口
  45. 'redis.port' => '6379',
  46. //redis密码
  47. 'redis.password' => 'ZhipuziRedisTest000',
  48. //全局配置
  49. //当前系统环境, dev, test, prod 三种环境,分别对应开发,测试, 生产环境
  50. 'global.env' => 'test',
  51. // api地址
  52. 'global.apiBaseUrl' => 'https://lsapi-test.zhipuzi.com',
  53. //静态资源url
  54. 'global.assetsUrl' => 'https://assets-ls-test.zhipuzi.com',
  55. //wap url
  56. 'global.wapBaseUrl' => 'https://lsh5-test.zhipuzi.com',
  57. //front使用的cdn地址
  58. 'global.frontCdnBaseUrl' => 'https://assets-ls-test.zhipuzi.com',
  59. //www url
  60. 'global.wwwBaseUrl' => 'https://www-test.zhipuzi.com',
  61. //微信营销域名,支持{appid}参数,格式: http://{appid}.yx.zhipuzi.com {appid}会替换成微信公众号appid
  62. 'global.wxYxBaseUrl' => 'http://{appid}.yxls-test.zhipuzi.com',
  63. //后台地址
  64. 'global.consoleUrl' => 'https://ls-test.zhipuzi.com',
  65. //微信开放平台配置
  66. 'global.wechatOpenPlatform.appid' => 'wxe66e8394b58176b3',
  67. 'global.wechatOpenPlatform.secret' => '9018b791d2be2067e11da984d6a94df1',
  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' => 'http://platform-test-api-svc',
  77. // 'global.platform.h5.url' => 'http://platform-test-api-svc',
  78. 'global.platform.api.url' => 'http://platform-test-api-svc',
  79. 'global.platformUrl' => 'https://pf-test.zhipuzi.com/',
  80. 'global.platform.h5.url' => 'https://wap-test.zhipuzi.com',
  81. // 'global.platform.api.url' => 'http://172.16.11.72',
  82. //代理商url配置
  83. 'global.agent.url' => 'https://agent-test.zhipuzi.com',
  84. 'global.agent.innerurl' => 'https://agent-test.zhipuzi.com',
  85. //智铺子公众号在商家后台的adminId
  86. "global.adminIdForZhipuzi" => "77101",
  87. //乐外卖公众号在商家后台的adminId
  88. "global.adminIdForLewaimai" => "19",
  89. //支付宝开放平台设置
  90. 'global.alipayOpenPlatform.appid' => '2016091100485241',
  91. //消息队列配置
  92. 'global.messageQueue.queues.bigTask' => 'big-task-dev',
  93. 'global.messageQueue.queues.smallTask' => 'small-task-dev',
  94. //子系统域名配置
  95. //进销存
  96. 'global.subSystemBaseUrl.jxc' => 'https://lsjxc-test.zhipuzi.com',
  97. 'gateway/api/jxc.api' => 'http://zhipuzi-ls-test-jxc-svc',
  98. //阿里云日志服务配置
  99. 'log.aliyunLogHub.endpoint' => 'cn-hangzhou.log.aliyuncs.com',
  100. //阿里云访问秘钥 AccessKeyId
  101. 'log.aliyunLogHub.accessKeyId' => 'LTAIpYffXvFnEUzp',
  102. //阿里云访问秘钥 AccessKeySecret
  103. 'log.aliyunLogHub.accessKey' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  104. //日志库
  105. 'log.aliyunLogHub.logstore' => 'test',
  106. //阿里云access key id
  107. 'opensearch.accessKeyId' => 'LTAIpYffXvFnEUzp',
  108. //阿里云access secret
  109. 'opensearch.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  110. //阿里云opensearch api域名
  111. 'opensearch.endPoint' => 'http://opensearch-cn-hangzhou.aliyuncs.com',
  112. //阿里云opensearch app - 外卖订单
  113. 'opensearch.indexApps.waimaiOrder' => 'ls_lewaimai_order_test',
  114. //阿里云opensearch app - 商品
  115. 'opensearch.indexApps.food' => 'ls_lewaimai_food_test',
  116. //阿里云opensearch app - 顾客
  117. 'opensearch.indexApps.lewaimaiCustomer' => 'ls_lewaimai_customer_test',
  118. //阿里云opensearch app - 会员
  119. 'opensearch.indexApps.lewaimaiMemberSearch' => 'ls_lewaimai_member_test',
  120. //阿里云access key id
  121. 'mns.accessKeyId' => 'LTAIpYffXvFnEUzp',
  122. //阿里云access secret
  123. 'mns.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  124. //阿里云mns api域名
  125. 'mns.endPoint' => 'https://1733013318510961.mns.cn-hangzhou.aliyuncs.com/',
  126. //监控配置
  127. 'statis.db.connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=lssystem',
  128. 'statis.db.username' => 'zhipuzi',
  129. 'statis.db.password' => 'Zhipuzitest00',
  130. //天下支付商户号
  131. 'pay.channels.tianxia.mchId' => '1800776625',
  132. //天下支付密钥
  133. 'pay.channels.tianxia.key' => '12345',
  134. //代付API域名
  135. 'pay.channels.tianxia.gateway' => 'http://api.tfb8.com',
  136. //微信、支付宝API域名
  137. 'pay.channels.tianxia.gateway2' => 'http://upay.tfb8.com',
  138. 'pay.channels.zhipuziOfficialAli.gateway' => 'https://openapi.alipaydev.com/gateway.do',
  139. //快服务
  140. 'fastservice.clientId' => 'kfw_dvyw4bcu95jw0bdl',
  141. 'fastservice.key' => 'cee0uaw012tzip60wvvshstbm4l87pva',
  142. // 'fastservice.domain' => 'http://open.dev.kfw.net',//旧的测试接口,备份
  143. 'fastservice.domain' => 'http://api2.kfw.net',
  144. 'fastservice.binddomain' => 'http://api.kfw.net',
  145. 'fastservice.merchantLoginUrl' => 'http://open.dev.kfw.net/flow/view/login_pc',
  146. //达达
  147. 'dada.domain' => 'http://newopen.qa.imdada.cn',
  148. //worker 环境参数配置
  149. //php命令路径
  150. 'worker.php' => '/usr/local/bin/php',
  151. //进程运行角色
  152. 'worker.user' => 'www',
  153. 'eleme.platformAppKey' => '8AEjry62wC',
  154. 'eleme.platformAppSecret' => 'ee97f489f639e19d3129cb99fe53098a11042933',
  155. 'eleme.callbackUrl' => 'https://api-test.zhipuzi.com/third/eleme/elemenotify/callBack',
  156. 'eleme.scope' => 'all',
  157. 'eleme.sandBox' => true,
  158. //日志路由配置
  159. // 'main.components.log.routes' => array(
  160. // //页面输出性能日志, 网页调试可以打开
  161. // array(
  162. // 'class' => 'CProfileLogRoute',
  163. // ),
  164. // ),
  165. //小程序模版配置
  166. //版本号
  167. 'mini_commit_version.userVersion' => [
  168. "shop"=> "3.2.2.12",//单店
  169. "divpage"=> "3.2.2.12",//微页面
  170. "chainstore"=> "3.2.2.12",//连锁店
  171. ],
  172. //版本描述
  173. 'mini_commit_version.userDesc' => [
  174. "shop"=> "智铺子3.2.2.12",
  175. "divpage"=> "智铺子3.2.2.12",
  176. "chainstore"=> "智铺子3.2.2.12",
  177. ],
  178. //小程序模版id
  179. 'mini_commit_version.templateId' => [
  180. "shop"=> "22",
  181. "divpage"=> "22",
  182. "chainstore"=> "22",
  183. ],
  184. 'global.lewaimai_url' => 'https://api-test.lewaimai.com',
  185. 'global.lwm_appid' => 'dsadsa12354654dsad2wqewq22ee',
  186. 'global.lwm_secret' => '#sdfa2d!@#AAAAS#@!',
  187. //同步登录状态的接口地址
  188. 'global.webSyncLoginApis' => [
  189. 'https://lsjxc-test.zhipuzi.com/merchant/synclogin',
  190. ],
  191. 'db_event_listener.php' => '/usr/local/bin/php',
  192. 'db_event_listener.kafka.binlogTopic' => 'test-rds-binlog',
  193. //windows收银机队列
  194. 'global.windowsMsgQueue' => 'test-windows-pos-push',
  195. //是否开启个推,1-开启,0-关闭
  196. 'getui.used' => '0',
  197. );