...
|
...
|
@@ -58,8 +58,6 @@ const bind = { |
|
|
let isReg = req.query.isReg;
|
|
|
let phoneNum = req.query.phoneNum;
|
|
|
|
|
|
console.log(typeof isReg);
|
|
|
|
|
|
res.render('bind/code', {
|
|
|
backUrl: helpers.urlFormat('passport/login'),
|
|
|
showHeaderImg: true,
|
...
|
...
|
@@ -198,7 +196,7 @@ const bind = { |
|
|
if (_.isNumber(parseInt(phoneNum, 0)) && openId && areaCode && sourceType && code) {
|
|
|
BindService.checkBindCode(areaCode, phoneNum, code).then(result => {
|
|
|
if (result && result.code && result.code === 200) {
|
|
|
return BindService.relateMobile(openId, sourceType, phoneNum, code);
|
|
|
return BindService.relateMobile(openId, sourceType, phoneNum, areaCode);
|
|
|
} else {
|
|
|
return { code: 400, message: '短信验证码错误', data: '' };
|
|
|
}
|
...
|
...
|
|