Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
王水玲
9 years ago
Commit
98eb47e5f0400d5749d1d35553108aa9c3fca81d
1 parent
a55b3f57
绑定回调报错修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
apps/passport/controllers/login.js
apps/passport/controllers/login.js
View file @
98eb47e
...
...
@@ -32,7 +32,10 @@ function doPassportCallback(openId, nickname, sourceType, req, res) {
}
if
(
openId
&&
nickname
)
{
return
AuthHelper
.
signinByOpenID
(
nickname
,
openId
,
sourceType
,
shoppingKey
).
then
((
result
)
=>
{
if
(
result
&&
result
.
data
[
'is_bind'
]
&&
result
.
data
[
'is_bind'
]
===
'N'
)
{
//eslint-disable-line
if
(
result
.
code
!==
200
)
{
return
Promise
.
reject
(
result
);
}
if
(
result
.
data
[
'is_bind'
]
&&
result
.
data
[
'is_bind'
]
===
'N'
)
{
//eslint-disable-line
return
helpers
.
urlFormat
(
'/passport/bind/index'
,
{
openId
:
openId
,
sourceType
:
sourceType
,
...
...
Please
register
or
login
to post a comment