env.php 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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=weixin',
  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=weixin',
  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=weixin',
  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.user.loginUrl' => 'https://www.zhipuzi.com/login.html',
  33. //redis配置
  34. //redis服务器地址
  35. 'redis.host' => 'r-bp1f00219de2df54.redis.rds.aliyuncs.com',
  36. //redis端口
  37. 'redis.port' => '6379',
  38. //redis密码
  39. 'redis.password' => 'a8JDLBksS49DKSFDE',
  40. //全局配置
  41. //当前系统环境, dev, test, prod 三种环境,分别对应开发,测试, 生产环境
  42. 'global.env' => 'prod',
  43. // api地址
  44. 'global.apiBaseUrl' => 'https://api.zhipuzi.com',
  45. //静态资源url
  46. 'global.assetsUrl' => 'https://assets.zhipuzi.com',
  47. //wap url
  48. 'global.wapBaseUrl' => 'https://wap.zhipuzi.com',
  49. //front使用的cdn地址
  50. 'global.frontCdnBaseUrl' => 'https://assets.zhipuzi.com',
  51. //www url
  52. 'global.wwwBaseUrl' => 'https://www.zhipuzi.com',
  53. //微信营销域名,支持{appid}参数,格式: http://{appid}.yx.zhipuzi.com {appid}会替换成微信公众号appid
  54. 'global.wxYxBaseUrl' => 'http://{appid}.yx.zhipuzi.com',
  55. //后台地址
  56. 'global.consoleUrl' => 'https://console.zhipuzi.com',
  57. //微信开放平台配置
  58. 'global.wechatOpenPlatform.appid' => 'wx1ebd2d6dd84d4806',
  59. 'global.wechatOpenPlatform.secret' => '1696e0c3e97f6bcfa0176ac72bd7bc98',
  60. //公众号消息校验Token
  61. 'global.wechatOpenPlatform.token' => 'TPWTPbWvaDWYkoBMGgw3qEvC2XoKl46lQ6A6Np8wjqw',
  62. //公众号消息加解密Key
  63. 'global.wechatOpenPlatform.encodingaeskey' => 'vh3aZMH16AXxo3hcmKZAy8rTLpEwIVLvgi3oBbZTnp1',
  64. //智铺子公众号配置
  65. 'global.wechat.appid' => 'wx9213c38c57da2bf6',
  66. 'global.wechat.secret' => 'b86b7f9ea84da111359bc65ea9bbec37',
  67. //智铺子公众号在商家后台的adminId
  68. "global.adminIdForZhipuzi" => "84534",
  69. //乐外卖公众号在商家后台的adminId
  70. "global.adminIdForLewaimai" => "19",
  71. //支付宝开放平台设置
  72. 'global.alipayOpenPlatform.appid' => '2018011501877956',
  73. //消息队列配置
  74. 'global.messageQueue.queues.bigTask' => 'big-task',
  75. 'global.messageQueue.queues.smallTask' => 'small-task',
  76. //子系统域名配置
  77. //进销存
  78. 'global.subSystemBaseUrl.jxc' => 'https://jxc.zhipuzi.com',
  79. 'gateway/api/jxc.api' => 'http://127.0.0.1:12123',
  80. //同步登录状态的接口地址
  81. 'global.webSyncLoginApis' => [
  82. 'https://jxc.zhipuzi.com/merchant/synclogin',
  83. ],
  84. //阿里云日志服务配置
  85. 'log.aliyunLogHub.endpoint' => 'cn-hangzhou.log.aliyuncs.com',
  86. //阿里云访问秘钥 AccessKeyId
  87. 'log.aliyunLogHub.accessKeyId' => 'LTAIpYffXvFnEUzp',
  88. //阿里云访问秘钥 AccessKeySecret
  89. 'log.aliyunLogHub.accessKey' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  90. //日志库
  91. 'log.aliyunLogHub.logstore' => 'product',
  92. //阿里云access key id
  93. 'opensearch.accessKeyId' => 'LTAIpYffXvFnEUzp',
  94. //阿里云access secret
  95. 'opensearch.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  96. //阿里云opensearch api域名
  97. 'opensearch.endPoint' => 'http://intranet.opensearch-cn-hangzhou.aliyuncs.com',
  98. //阿里云opensearch app - 外卖订单
  99. 'opensearch.indexApps.waimaiOrder' => 'lewaimai_order',
  100. //阿里云opensearch app - 商品
  101. 'opensearch.indexApps.food' => 'lewaimai_food',
  102. //阿里云opensearch app - 顾客
  103. 'opensearch.indexApps.lewaimaiCustomer' => 'lewaimai_customer',
  104. //阿里云opensearch app - 会员
  105. 'opensearch.indexApps.lewaimaiMemberSearch' => 'lewaimai_member',
  106. //阿里云access key id
  107. 'mns.accessKeyId' => 'LTAIpYffXvFnEUzp',
  108. //阿里云access secret
  109. 'mns.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
  110. //阿里云mns api域名
  111. 'mns.endPoint' => 'http://1733013318510961.mns.cn-hangzhou-internal.aliyuncs.com/',
  112. //监控配置
  113. 'statis.db.connectionString' => 'mysql:host=rm-bp1353x13u02kzess.mysql.rds.aliyuncs.com;dbname=weixin',
  114. 'statis.db.username' => 'zhipuzi',
  115. 'statis.db.password' => 'ZhipuziGX029319',
  116. //天下支付商户号
  117. 'pay.channels.tianxia.mchId' => '1800776625',
  118. //天下支付密钥
  119. 'pay.channels.tianxia.key' => '12345',
  120. //代付API域名
  121. 'pay.channels.tianxia.gateway' => 'http://api.tfb8.com',
  122. //微信、支付宝API域名
  123. 'pay.channels.tianxia.gateway2' => 'http://upay.tfb8.com',
  124. //快服务
  125. 'fastservice.clientId' => 'kfw_dvyw4bcu95jw0bdl',
  126. 'fastservice.key' => 'cee0uaw012tzip60wvvshstbm4l87pva',
  127. 'fastservice.domain' => 'http://api.kfw.net',
  128. 'fastservice.merchantLoginUrl' => 'http://api.kfw.net/flow/view/login_pc',
  129. //达达
  130. 'dada.domain' => 'http://newopen.imdada.cn',
  131. //worker 环境参数配置
  132. //php命令路径
  133. 'worker.php' => '/alidata/server/php/bin/php',
  134. //进程运行角色
  135. 'worker.user' => 'www',
  136. //乐外卖推送api
  137. 'global.pushUrl' => 'http://pushapi.lewaimai.com:9090',
  138. 'eleme.platformAppKey' => 'v2mNDIVumW',
  139. 'eleme.platformAppSecret' => '870a9e7c33ca9aba3c5482da6989ee6f',
  140. 'eleme.storeAppKey' => 'OOIgplBcFZ',
  141. 'eleme.storeAppSecret' => '850a8617883ddad68e855128b386cef824901613',
  142. 'eleme.callbackUrl' => 'https://api.zhipuzi.com/third/eleme/elemenotify/callBack?admin_id=',
  143. 'eleme.scope' => 'all',
  144. 'eleme.sandBox' => false,
  145. //日志路由配置
  146. // 'main.components.log.routes' => array(
  147. // //页面输出性能日志, 网页调试可以打开
  148. // array(
  149. // 'class' => 'CProfileLogRoute',
  150. // ),
  151. // ),
  152. //小程序模版配置
  153. //版本号
  154. 'mini_commit_version.userVersion' => [
  155. "shop"=>"2.7.40",//单店
  156. "divpage"=>"2.7.39",//微页面
  157. "chainstore"=>"2.7.40",//连锁店
  158. ],
  159. //版本描述
  160. 'mini_commit_version.userDesc' => [
  161. "shop"=>"智铺子V2.7.40",
  162. "divpage"=>"智铺子V2.7.39",
  163. "chainstore"=>"智铺子V2.7.40",
  164. ],
  165. //小程序模版id
  166. 'mini_commit_version.templateId' => [
  167. "shop"=>"62",
  168. "divpage"=>"61",
  169. "chainstore"=>"62",
  170. ],
  171. 'global.lewaimai_url' => 'https://api.lewaimai.com',
  172. 'global.lwm_appid' => 'dsadsa12354654dsad2wqewq22ee',
  173. 'global.lwm_secret' => '#sdfa2d!@#AAAAS#@!',
  174. );