Authored by 郝肖肖

'绑定验证码'

... ... @@ -346,7 +346,10 @@ const bind = {
// 第三方绑定手机号发送短信
thirdSendMsgApi: (req, res, next) => {
req.ctx(BindServiceModel).sendThirdBindMobileCodeOnly(req.body).then(result => {
req.ctx(BindServiceModel).sendThirdBindMobileCodeOnly(Object.assign({}, req.body, {
udid: req.cookies.udid,
superCapture: req.body.geetest_challenge ? config.superCapture : ''
})).then(result => {
if (_.get(result, 'code', 400) === 200) {
return next();
}
... ... @@ -378,7 +381,10 @@ const bind = {
// 通过邮箱绑定手机号发送短信
sendMsgApi: (req, res, next) => {
req.ctx(BindServiceModel).sendChangeBindMobileCodeOnly(req.body).then(result => {
req.ctx(BindServiceModel).sendChangeBindMobileCodeOnly(Object.assign({}, req.body, {
udid: req.cookies.udid,
superCapture: req.body.geetest_challenge ? config.superCapture : ''
})).then(result => {
if (_.get(result, 'code', 400) === 200) {
return next();
}
... ...
... ... @@ -107,7 +107,10 @@ class BindServiceModel extends global.yoho.BaseModel {
method: 'app.bind.sendChangeBindMobileCodeOnlyImg',
business_line: 'yohobuy',
mobile: params.mobile || '',
area: params.area || '86'
area: params.area || '86',
degrees: params.captcha || '',
superCapture: params.superCapture || '',
fromPage: PAGE
}});
}
... ... @@ -140,7 +143,10 @@ class BindServiceModel extends global.yoho.BaseModel {
method: 'app.bind.sendThirdBindMobileCodeOnlyImg',
business_line: 'yohobuy',
mobile: params.mobile || '',
area: params.area || '86'
area: params.area || '86',
superCapture: params.superCapture || '',
degrees: params.captcha || '',
fromPage: PAGE
}});
}
... ...