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
郝肖肖
7 years ago
Commit
e9381b053fdbba32ef5840872364e1a1ae863594
1 parent
050fe287
'wx-undefined'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
apps/passport/controllers/login.js
public/js/plugin/wx-share.js
apps/passport/controllers/login.js
View file @
e9381b0
...
...
@@ -64,7 +64,8 @@ function doPassportCallback(openId, nickname, sourceType, req, res) {
return
res
.
redirect
(
redirectTo
);
});
}
else
{
return
Promise
.
reject
(
'missing third party login openId or nickname'
);
log
.
error
(
`
missing
third
party
login
openId
or
nickname
,
url
:
$
{
req
.
url
}
`
);
return
res
.
redirect
(
loginPage
);
}
}
...
...
public/js/plugin/wx-share.js
View file @
e9381b0
...
...
@@ -15,7 +15,7 @@ module.exports = function() {
let
_appId
,
_timestamp
,
_nonceStr
,
_signature
;
if
(
!
wx
)
{
if
(
typeof
wx
===
'undefined'
)
{
return
;
}
...
...
Please
register
or
login
to post a comment