Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
biao
2016-07-25 17:56:34 +0800
Commit
e2dd993a27fd96ad1fa76083ee632594304e73be
2 parents
45c66115
55e9ebb1
Merge branch 'release/1.0' of
http://git.yoho.cn/fe/yoho-blk
into release/1.0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
apps/passport/controllers/reg.js
apps/passport/models/auth-helper.js
apps/passport/models/back-service.js
config/common.js
apps/passport/controllers/reg.js
View file @
e2dd993
...
...
@@ -66,7 +66,7 @@ let index = (req, res) => {
location
:
'+86'
,
countryName
:
{
text
:
'中国'
},
captchaUrl
:
helpers
.
urlFormat
(
'/passport/images'
,
{
t
:
Date
.
now
()}),
itemUrl
:
helpers
.
urlFormat
(
'/help
/'
,
{
category_id
:
9
}
),
itemUrl
:
helpers
.
urlFormat
(
'/help
'
),
referUrl
:
refer
,
loginUrl
:
helpers
.
urlFormat
(
'/passport/login'
,
{
refer
:
refer
}),
regBtnText
:
'立即注册'
...
...
apps/passport/models/auth-helper.js
View file @
e2dd993
...
...
@@ -98,7 +98,7 @@ const Auth = {
domain
:
config
.
cookieDomain
});
// esline-disable-line
})
.
catch
(
console
.
log
)
;
});
},
rememberAccount
(
accountInfo
,
req
,
res
)
{
let
aWeek
=
(
new
Date
()).
getTime
()
/
1000
+
504000
;
// 504000-一周
...
...
apps/passport/models/back-service.js
View file @
e2dd993
...
...
@@ -104,7 +104,7 @@ const indexPageDataAsync = () => {
countryName
:
{
text
:
'中国'
},
location
:
'+86'
,
country
:
{
list
:
countryList
},
captchaUrl
:
helpers
.
urlFormat
(
'/passport/images'
)
,
captchaUrl
:
helpers
.
urlFormat
(
'/passport/images'
)
}
};
})();
...
...
config/common.js
View file @
e2dd993
...
...
@@ -19,7 +19,7 @@ module.exports = {
},
cookieDomain
:
'yohobuy.com'
,
domains
:
{
api
:
'http://
test
api.yoho.cn:58078/'
,
// devapi.yoho.cn:58078 testapi.yoho.cn:28078 devapi.yoho.cn:58078
api
:
'http://
dev
api.yoho.cn:58078/'
,
// devapi.yoho.cn:58078 testapi.yoho.cn:28078 devapi.yoho.cn:58078
service
:
'http://testservice.yoho.cn:28077/'
,
// testservice.yoho.cn:28077 devservice.yoho.cn:58077
search
:
'http://192.168.102.216:8080/yohosearch/'
},
...
...
Please
register
or
login
to post a comment