...
|
...
|
@@ -200,10 +200,14 @@ const bind = { |
|
|
let refer = helpers.urlFormat('/passport/bind/success', { sourceType: sourceType });
|
|
|
|
|
|
if (result && result.code && result.code === 200 && result.data.uid) {
|
|
|
AuthHelper.syncUserSession(result.data.uid, req, res);
|
|
|
result.data.refer = refer;
|
|
|
return AuthHelper.syncUserSession(result.data.uid, req, res).then(() => {
|
|
|
result.data.refer = refer;
|
|
|
return result;
|
|
|
});
|
|
|
} else {
|
|
|
return { code: 400, message: '绑定失败', data: '' };
|
|
|
}
|
|
|
return result;
|
|
|
|
|
|
}).then(result => {
|
|
|
res.json(result);
|
|
|
}).catch(next);
|
...
|
...
|
|