Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-activity-platform
·
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
李奇
8 years ago
Commit
4b1b2bee487e83949b2c479a9aeb79070a700d03
1 parent
78bc4076
跨域域名增加
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
apps/passport/controllers/user.js
config/index.js
apps/passport/controllers/user.js
View file @
4b1b2be
...
...
@@ -40,9 +40,9 @@ const userController = {
message
:
GET_USER_INFO_SUCCESS
});
}
else
{
let
name
=
mobile
.
replace
(
/
(\d{3})\d{4}(\d{4})
/
,
'$1****$2'
);
let
name
=
'用户'
+
mobile
.
substr
(
7
);
let
avatar
=
'http://img12.static.yhbimg.com/'
+
'imserver/2016/11/17/11/02bc3c3de856432175c01d937342a1f2ce.jpg'
;
// TODO TO BE REPLACED
'imserver/2016/11/17/11/02bc3c3de856432175c01d937342a1f2ce.jpg'
;
userInfo
=
{
name
,
...
...
config/index.js
View file @
4b1b2be
...
...
@@ -83,7 +83,12 @@ if (isProduction) {
singleApi
:
'http://single.yoho.cn/'
,
platformApi
:
'http://api.platform.yohoops.org'
},
corsAllowOrigin
:
[
'http://ad.yoho.cn'
,
'https://ad.yoho.cn'
],
corsAllowOrigin
:
[
'http://ad.yoho.cn'
,
'https://ad.yoho.cn'
,
'http://feature.yoho.cn'
,
'https://feature.yoho.cn'
],
memcache
:
{
master
:
[
'memcache1.yohoops.org:12111'
,
'memcache2.yohoops.org:12111'
,
'memcache3.yohoops.org:12111'
],
slave
:
[
'memcache1.yohoops.org:12112'
,
'memcache2.yohoops.org:12112'
,
'memcache3.yohoops.org:12112'
],
...
...
Please
register
or
login
to post a comment