|
|
@@ -0,0 +1,169 @@
|
|
|
+<?php
|
|
|
+/**
|
|
|
+ * 环境参数例子
|
|
|
+ * 格式说明:
|
|
|
+ * 配置均为kv形式
|
|
|
+ * key的格式: 文件名.key1[.keyN]
|
|
|
+ * 例子:
|
|
|
+ * 需要覆盖main配置文件db的connectionString参数
|
|
|
+ * array(
|
|
|
+ * //数据库链接字符串
|
|
|
+ * 'main.components.db.connectionString' => 'xxxxxx'
|
|
|
+ * )
|
|
|
+ */
|
|
|
+return array(
|
|
|
+ //rds配置
|
|
|
+ 'main.components.db.connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=platform',
|
|
|
+ 'main.components.db.username' => 'zhipuzi',
|
|
|
+ 'main.components.db.password' => 'Zhipuzidev00',
|
|
|
+ //登录页面
|
|
|
+ 'main.components.user.loginUrl' => 'https://www-dev.zhipuzi.com/login.html',
|
|
|
+
|
|
|
+ //redis配置
|
|
|
+ //redis服务器地址
|
|
|
+ 'redis.host' => 'r-bp1a108df3b69ca4.redis.rds.aliyuncs.com',
|
|
|
+ //redis端口
|
|
|
+ 'redis.port' => '6379',
|
|
|
+ //redis密码
|
|
|
+ 'redis.password' => 'KS2ihs921s11',
|
|
|
+
|
|
|
+ //全局配置
|
|
|
+ //当前系统环境, dev, test, prod 三种环境,分别对应开发,测试, 生产环境
|
|
|
+ 'global.env' => 'dev',
|
|
|
+ // api地址
|
|
|
+ 'global.apiBaseUrl' => 'https://pf-api-dev.zhipuzi.com',
|
|
|
+ //静态资源url
|
|
|
+ 'global.assetsUrl' => 'https://pf-assets-dev.zhipuzi.com',
|
|
|
+ //wap url
|
|
|
+ 'global.wapBaseUrl' => 'https://wap-dev.zhipuzi.com',
|
|
|
+ //后台地址
|
|
|
+ 'global.consoleUrl' => 'https://console-dev.zhipuzi.com',
|
|
|
+ //front使用的cdn地址
|
|
|
+ 'global.frontCdnBaseUrl' => 'https://pf-assets-dev.zhipuzi.com',
|
|
|
+ //www url
|
|
|
+ 'global.wwwBaseUrl' => 'https://www-dev.zhipuzi.com',
|
|
|
+ //微信营销域名,支持{appid}参数,格式: http://{appid}.yx.zhipuzi.com {appid}会替换成微信公众号appid
|
|
|
+ 'global.wxYxBaseUrl' => 'https://wap-dev.zhipuzi.com',
|
|
|
+ //官网域名
|
|
|
+ 'global.officialWebsiteUrl' => 'http://www-dev.zhipuzi.com',
|
|
|
+ //admin系统url
|
|
|
+ "global.adminUrl" => "https://admin-dev.zhipuzi.com",
|
|
|
+
|
|
|
+ //微信开放平台配置
|
|
|
+ 'global.wechatOpenPlatform.appid' => 'wx1e6803d25f7f5112',
|
|
|
+ 'global.wechatOpenPlatform.secret' => '4e39e7e109bea82359f92e81be66231f',
|
|
|
+ //公众号消息校验Token
|
|
|
+ 'global.wechatOpenPlatform.token' => 'TPWTPbWvaDWYkoBMGgw3qEvC2XoKl46lQ6A6Np8wjqw',
|
|
|
+ //公众号消息加解密Key
|
|
|
+ 'global.wechatOpenPlatform.encodingaeskey' => 'vh3aZMH16AXxo3hcmKZAy8rTLpEwIVLvgi3oBbZTnp1',
|
|
|
+
|
|
|
+ //智铺子公众号配置
|
|
|
+ 'global.wechat.appid' => 'wx9213c38c57da2bf6',
|
|
|
+ 'global.wechat.secret' => '8513b99bfd3c6372f843eae792c82a06',
|
|
|
+
|
|
|
+ //智铺子公众号在商家后台的adminId
|
|
|
+ "global.adminIdForZhipuzi" => "1706",
|
|
|
+
|
|
|
+ //乐外卖公众号在商家后台的adminId
|
|
|
+ "global.adminIdForLewaimai" => "19",
|
|
|
+
|
|
|
+ //支付宝开放平台设置
|
|
|
+ 'global.alipayOpenPlatform.appid' => '2018011501877956',
|
|
|
+
|
|
|
+ //餐饮系统内网h5域名
|
|
|
+ 'global.business_h5_internal_host.repast' => 'https://cyh5-dev.zhipuzi.com',
|
|
|
+ //零售系统内外h5域名
|
|
|
+ 'global.business_h5_internal_host.retail' => 'https://lsh5-dev.zhipuzi.com',
|
|
|
+ //餐饮系统内网api域名
|
|
|
+ 'global.business_h5_internal_host.repastapi' => 'https://cyapi-dev.zhipuzi.com',
|
|
|
+ //零售系统内外api域名
|
|
|
+ 'global.business_h5_internal_host.retailapi' => 'https://lsapi-dev.zhipuzi.com',
|
|
|
+
|
|
|
+ //消息队列配置
|
|
|
+ 'global.messageQueue.queues.bigTask' => 'big-task-dev',
|
|
|
+ 'global.messageQueue.queues.smallTask' => 'small-task-dev',
|
|
|
+
|
|
|
+ //子系统域名配置
|
|
|
+ //进销存
|
|
|
+ 'global.subSystemBaseUrl.jxc' => 'https://jxc-dev2.zhipuzi.com',
|
|
|
+ 'gateway/api/jxc.api' => 'http://127.0.0.1:12332',
|
|
|
+
|
|
|
+ //阿里云日志服务配置
|
|
|
+ 'log.aliyunLogHub.endpoint' => 'cn-hangzhou.log.aliyuncs.com',
|
|
|
+ //阿里云访问秘钥 AccessKeyId
|
|
|
+ 'log.aliyunLogHub.accessKeyId' => 'LTAIpYffXvFnEUzp',
|
|
|
+ //阿里云访问秘钥 AccessKeySecret
|
|
|
+ 'log.aliyunLogHub.accessKey' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
|
|
|
+ //日志库
|
|
|
+ 'log.aliyunLogHub.logstore' => 'platform-dev',
|
|
|
+
|
|
|
+ //阿里云access key id
|
|
|
+ 'opensearch.accessKeyId' => 'LTAIpYffXvFnEUzp',
|
|
|
+ //阿里云access secret
|
|
|
+ 'opensearch.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
|
|
|
+ //阿里云opensearch api域名
|
|
|
+ 'opensearch.endPoint' => 'http://opensearch-cn-hangzhou.aliyuncs.com',
|
|
|
+ //阿里云opensearch app - 外卖订单
|
|
|
+ 'opensearch.indexApps.waimaiOrder' => 'lewaimai_order_dev',
|
|
|
+
|
|
|
+ //阿里云access key id
|
|
|
+ 'mns.accessKeyId' => 'LTAIpYffXvFnEUzp',
|
|
|
+ //阿里云access secret
|
|
|
+ 'mns.accessSecret' => 'F3lqBxo6Uj9pJpLs7btMW5u30X5uKB',
|
|
|
+ //阿里云mns api域名
|
|
|
+ 'mns.endPoint' => 'http://1733013318510961.mns.cn-hangzhou-internal.aliyuncs.com/',
|
|
|
+
|
|
|
+ //监控配置
|
|
|
+ 'statis.db.connectionString' => 'mysql:host=rm-bp189473779ebgc28.mysql.rds.aliyuncs.com;dbname=platform',
|
|
|
+ 'statis.db.username' => 'zhipuzi',
|
|
|
+ 'statis.db.password' => 'Zhipuzidev00',
|
|
|
+
|
|
|
+ //天下支付商户号
|
|
|
+ 'pay.channels.tianxia.mchId' => '1800776625',
|
|
|
+ //天下支付密钥
|
|
|
+ 'pay.channels.tianxia.key' => '12345',
|
|
|
+ //代付API域名
|
|
|
+ 'pay.channels.tianxia.gateway' => 'http://api.tfb8.com',
|
|
|
+ //微信、支付宝API域名
|
|
|
+ 'pay.channels.tianxia.gateway2' => 'http://upay.tfb8.com',
|
|
|
+
|
|
|
+ //快服务
|
|
|
+ 'fastservice.clientId' => 'kfw_dvyw4bcu95jw0bdl',
|
|
|
+ 'fastservice.key' => 'cee0uaw012tzip60wvvshstbm4l87pva',
|
|
|
+ 'fastservice.domain' => 'http://open.dev.kfw.net',
|
|
|
+ 'fastservice.merchantLoginUrl' => 'http://open.dev.kfw.net/flow/view/login_pc',
|
|
|
+
|
|
|
+ //达达
|
|
|
+ 'dada.domain' => 'http://newopen.qa.imdada.cn',
|
|
|
+
|
|
|
+ //worker 环境参数配置
|
|
|
+ //php命令路径
|
|
|
+ 'worker.php' => '/usr/local/bin/php',
|
|
|
+ //进程运行角色
|
|
|
+ 'worker.user' => 'www',
|
|
|
+
|
|
|
+ //日志路由配置
|
|
|
+// 'main.components.log.routes' => array(
|
|
|
+// //页面输出性能日志, 网页调试可以打开
|
|
|
+// array(
|
|
|
+// 'class' => 'CProfileLogRoute',
|
|
|
+// ),
|
|
|
+// ),
|
|
|
+ //小程序模版配置
|
|
|
+ //版本号
|
|
|
+ 'mini_commit_version.userVersion' => '2.5.0',
|
|
|
+ //版本描述
|
|
|
+ 'mini_commit_version.userDesc' => '小程序基础Beta版本',
|
|
|
+ //小程序模版id
|
|
|
+ 'mini_commit_version.templateId' => '1',
|
|
|
+
|
|
|
+ 'global.lewaimai_url' => 'https://api-dev.lewaimai.com',
|
|
|
+ 'global.lwm_appid' => 'dsadsa12354654dsad2wqewq22ee',
|
|
|
+ 'lwm_secret' => '#sdfa2d!@#AAAAS#@!',
|
|
|
+ //餐饮营销域名
|
|
|
+ 'global.business_host.cyYxBaseUrl' => 'https://cyh5-dev.zhipuzi.com',
|
|
|
+ //零售营销域名
|
|
|
+ 'global.business_host.lsYxBaseUrl' => 'https://lsh5-dev.zhipuzi.com',
|
|
|
+ 'global.business_host.cyapi' => 'https://cyapi-dev.zhipuzi.com',
|
|
|
+ 'global.business_host.lsapi' => 'https://lsapi-dev.zhipuzi.com',
|
|
|
+);
|