Showing
1 changed file
with
4 additions
and
1 deletions
@@ -34,7 +34,10 @@ const _doPassportCallback = (req, res, user) => { | @@ -34,7 +34,10 @@ const _doPassportCallback = (req, res, user) => { | ||
34 | 34 | ||
35 | if (user.openId && user.nickname) { | 35 | if (user.openId && user.nickname) { |
36 | let signinByOpenID = LoginService.signinByOpenIDAsync( | 36 | let signinByOpenID = LoginService.signinByOpenIDAsync( |
37 | - user.nickname, user.openId, user.sourceType, shoppingKey, user.unionId); | 37 | + _.trim(user.nickname), _.trim(user.openId), |
38 | + _.trim(user.sourceType), _.trim(shoppingKey), | ||
39 | + _.trim(user.unionId) | ||
40 | + ); | ||
38 | 41 | ||
39 | return signinByOpenID.then((result) => { | 42 | return signinByOpenID.then((result) => { |
40 | if (result.code !== 200) { | 43 | if (result.code !== 200) { |
-
Please register or login to post a comment