|
|
@@ -57,33 +57,33 @@ if (strpos($referrer, 'https') === true) {
|
|
|
}
|
|
|
|
|
|
if (getenv('YII_ENV') == 'local') {
|
|
|
- $config['c'] = $prefixHttp . 'api.m.hhb.com/';
|
|
|
- $config['b'] = $prefixHttp . 'api.b.hhb.com/';
|
|
|
+ $config['c'] = $prefixHttp . 'api.m.hhb.com';
|
|
|
+ $config['b'] = $prefixHttp . 'api.b.hhb.com';
|
|
|
if (strpos($referrer, $prefixHttp . 'h') === true || strpos($referrer, $prefixHttp . 'api.h') === true) {
|
|
|
- $config['b'] = $prefixHttp . 'api.h.hhb.com/';
|
|
|
+ $config['b'] = $prefixHttp . 'api.h.hhb.com';
|
|
|
}
|
|
|
- $config['s'] = $prefixHttp . 'api.s.hhb.com/';
|
|
|
+ $config['s'] = $prefixHttp . 'api.s.hhb.com';
|
|
|
}
|
|
|
if (getenv('YII_ENV') == 'test') {
|
|
|
- $config['c'] = $prefixHttp . 'api.m.huaml.com/';
|
|
|
- $config['b'] = $prefixHttp . 'api.b.huaml.com/';
|
|
|
+ $config['c'] = $prefixHttp . 'api.m.huaml.com';
|
|
|
+ $config['b'] = $prefixHttp . 'api.b.huaml.com';
|
|
|
if (strpos($referrer, $prefixHttp . 'h') === true || strpos($referrer, $prefixHttp . 'api.h') === true) {
|
|
|
- $config['b'] = $prefixHttp . 'api.h.huaml.com/';
|
|
|
+ $config['b'] = $prefixHttp . 'api.h.huaml.com';
|
|
|
}
|
|
|
- $config['s'] = $prefixHttp . 'api.s.huaml.com/';
|
|
|
+ $config['s'] = $prefixHttp . 'api.s.huaml.com';
|
|
|
}
|
|
|
if (getenv('YII_ENV') == 'development') {
|
|
|
- $config['c'] = $prefixHttp . 'api.m.huaml.com/';
|
|
|
- $config['b'] = $prefixHttp . 'api.b.huaml.com/';
|
|
|
+ $config['c'] = $prefixHttp . 'api.m.huaml.com';
|
|
|
+ $config['b'] = $prefixHttp . 'api.b.huaml.com';
|
|
|
if (strpos($referrer, $prefixHttp . 'h') === true || strpos($referrer, $prefixHttp . 'api.h') === true) {
|
|
|
- $config['b'] = $prefixHttp . 'api.h.huaml.com/';
|
|
|
+ $config['b'] = $prefixHttp . 'api.h.huaml.com';
|
|
|
}
|
|
|
- $config['s'] = $prefixHttp . 'api.s.huaml.com/';
|
|
|
+ $config['s'] = $prefixHttp . 'api.s.huaml.com';
|
|
|
}
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
- $config['c'] = $prefixHttp . 'api.m.huahb.com/';
|
|
|
- $config['b'] = $prefixHttp . 'api.b.huahb.com/';
|
|
|
- $config['b'] = $prefixHttp . 'api.h.huahb.com/';
|
|
|
- $config['s'] = $prefixHttp . 'api.s.huahb.com/';
|
|
|
+ $config['c'] = $prefixHttp . 'api.m.huahb.com';
|
|
|
+ $config['b'] = $prefixHttp . 'api.b.huahb.com';
|
|
|
+ $config['b'] = $prefixHttp . 'api.h.huahb.com';
|
|
|
+ $config['s'] = $prefixHttp . 'api.s.huahb.com';
|
|
|
}
|
|
|
return $config;
|