Toggle navigation
Toggle navigation
This project
Loading...
Sign in
web
/
yoho-live
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xiaofeng.yao@yoho.cn
8 years ago
Commit
458e63b37a51f4a6bd7ff7861e74df5c55dae19a
1 parent
55a13289
yohoapi 配置挪到params.php文件
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
common/config/params.php
common/lib/YohoApi/Client.php
common/config/params.php
View file @
458e63b
...
...
@@ -30,6 +30,7 @@ class Environmen{
define
(
'NEWS_DOMAIN'
,
'http://newboys.yoho.cn/'
);
define
(
'YOHOBUY_H5_DOMAIN'
,
'http://m.yohobuy.com'
);
define
(
'YOHOBUY_API_DOMAIN'
,
'http://api.yoho.cn/'
);
}
/**
...
...
@@ -42,6 +43,7 @@ class Environmen{
define
(
'NEWS_DOMAIN'
,
'http://newboys.test.yoho.cn/'
);
define
(
'YOHOBUY_H5_DOMAIN'
,
'http://m.yohobuy.com'
);
define
(
'YOHOBUY_API_DOMAIN'
,
'http://api.yoho.cn/'
);
}
}
Environmen
::
ENV
();
...
...
common/lib/YohoApi/Client.php
View file @
458e63b
...
...
@@ -12,11 +12,6 @@ use yii\helpers\ArrayHelper;
*/
class
Client
{
private
static
$_domain
=
array
(
'prod'
=>
'http://api.yoho.cn/'
,
'dev'
=>
'http://192.168.102.205:8080/gateway/'
,
);
/**
* 私钥列表
...
...
@@ -149,7 +144,7 @@ class Client{
}
protected
function
getDomain
(){
return
ArrayHelper
::
getValue
(
self
::
$_domain
,
YII_ENV
,
self
::
$_domain
[
'prod'
])
;
return
YOHOBUY_API_DOMAIN
;
}
/**
...
...
Please
register
or
login
to post a comment