env.php 9.5 KB

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