...
|
...
|
@@ -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,
|
...
|
...
|
|