...
|
...
|
@@ -218,9 +218,6 @@ const bindCheck = (req, res, next) => { |
|
|
} else if (result.code === 200 && result.data.is_register === 1) {
|
|
|
return UserService.getUserInfoAsync(area, mobile).then(user => {
|
|
|
// 绑定流程:code=201 已注册 绑定过其他第三方
|
|
|
req.session.thirdBind = {
|
|
|
mobile: mobile
|
|
|
};
|
|
|
return { code: 201, message: result.message, data: { user: user } };
|
|
|
});
|
|
|
} else if (result.code === 200 && result.data.is_register === 3) {
|
...
|
...
|
@@ -253,6 +250,9 @@ const sendBindMsg = (req, res, next) => { |
|
|
|
|
|
BindService.sendBindMsgAsync(area, mobile).then(result => {
|
|
|
if (result && result.code) {
|
|
|
req.session.thirdBind = {
|
|
|
mobile: mobile
|
|
|
};
|
|
|
res.json(result);
|
|
|
} else {
|
|
|
res.json({ code: 400, message: '', data: '' });
|
...
|
...
|
|