|
@@ -46,7 +46,6 @@ $config = [
|
|
|
'endpoint'=>'oss-cn-hangzhou.aliyuncs.com',
|
|
'endpoint'=>'oss-cn-hangzhou.aliyuncs.com',
|
|
|
|
|
|
|
|
//达达相关配置
|
|
//达达相关配置
|
|
|
- 'dadaOnline'=>false, //正式环境改为true
|
|
|
|
|
'dadaAppKey'=>'dadae6c9d6064e69cf4',
|
|
'dadaAppKey'=>'dadae6c9d6064e69cf4',
|
|
|
'dadaAppSecret'=>'8ed3b159f64021003aa73f7233118fe6',
|
|
'dadaAppSecret'=>'8ed3b159f64021003aa73f7233118fe6',
|
|
|
];
|
|
];
|
|
@@ -87,6 +86,9 @@ if (getenv('YII_ENV') == 'local') {
|
|
|
$config['mallImgHost'] = $prefixHttp . 'img.the.cn/';
|
|
$config['mallImgHost'] = $prefixHttp . 'img.the.cn/';
|
|
|
|
|
|
|
|
$config['ossBucket'] = 'pic-hhb-cs';
|
|
$config['ossBucket'] = 'pic-hhb-cs';
|
|
|
|
|
+
|
|
|
|
|
+ //Dada
|
|
|
|
|
+ $config['dadaOnline']= false; //正式环境改为true
|
|
|
}
|
|
}
|
|
|
if (getenv('YII_ENV') == 'test') {
|
|
if (getenv('YII_ENV') == 'test') {
|
|
|
$config['hdHost'] = $prefixHttp . 'api.shop.huaml.com';
|
|
$config['hdHost'] = $prefixHttp . 'api.shop.huaml.com';
|
|
@@ -108,6 +110,7 @@ if (getenv('YII_ENV') == 'test') {
|
|
|
$config['mallImgHost'] = $prefixHttp . 'img.theflorist.cn/';
|
|
$config['mallImgHost'] = $prefixHttp . 'img.theflorist.cn/';
|
|
|
|
|
|
|
|
$config['ossBucket'] = 'pic-hhb-cs';
|
|
$config['ossBucket'] = 'pic-hhb-cs';
|
|
|
|
|
+ $config['dadaOnline']= false; //正式环境改为true
|
|
|
}
|
|
}
|
|
|
if (getenv('YII_ENV') == 'dev') {
|
|
if (getenv('YII_ENV') == 'dev') {
|
|
|
$config['hdHost'] = $prefixHttp . 'api.shop.huaml.com';
|
|
$config['hdHost'] = $prefixHttp . 'api.shop.huaml.com';
|
|
@@ -129,6 +132,7 @@ if (getenv('YII_ENV') == 'dev') {
|
|
|
$config['mallImgHost'] = $prefixHttp . 'img.theflorist.cn/';
|
|
$config['mallImgHost'] = $prefixHttp . 'img.theflorist.cn/';
|
|
|
|
|
|
|
|
$config['ossBucket'] = 'pic-hhb-cs';
|
|
$config['ossBucket'] = 'pic-hhb-cs';
|
|
|
|
|
+ $config['dadaOnline']= false; //正式环境改为true
|
|
|
}
|
|
}
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
$config['hdHost'] = $prefixHttp . 'api.shop.huahb.com';
|
|
$config['hdHost'] = $prefixHttp . 'api.shop.huahb.com';
|
|
@@ -150,5 +154,6 @@ if (getenv('YII_ENV') == 'production') {
|
|
|
$config['mallImgHost'] = $prefixHttp . 'img.zhhinc.com/';
|
|
$config['mallImgHost'] = $prefixHttp . 'img.zhhinc.com/';
|
|
|
|
|
|
|
|
$config['ossBucket'] = 'pic-hhb';
|
|
$config['ossBucket'] = 'pic-hhb';
|
|
|
|
|
+ $config['dadaOnline']= true; //正式环境改为true
|
|
|
}
|
|
}
|
|
|
return $config;
|
|
return $config;
|