env.php 9.3 KB

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