Showing
2 changed files
with
16 additions
and
4 deletions
@@ -346,7 +346,10 @@ const bind = { | @@ -346,7 +346,10 @@ const bind = { | ||
346 | 346 | ||
347 | // 第三方绑定手机号发送短信 | 347 | // 第三方绑定手机号发送短信 |
348 | thirdSendMsgApi: (req, res, next) => { | 348 | thirdSendMsgApi: (req, res, next) => { |
349 | - req.ctx(BindServiceModel).sendThirdBindMobileCodeOnly(req.body).then(result => { | 349 | + req.ctx(BindServiceModel).sendThirdBindMobileCodeOnly(Object.assign({}, req.body, { |
350 | + udid: req.cookies.udid, | ||
351 | + superCapture: req.body.geetest_challenge ? config.superCapture : '' | ||
352 | + })).then(result => { | ||
350 | if (_.get(result, 'code', 400) === 200) { | 353 | if (_.get(result, 'code', 400) === 200) { |
351 | return next(); | 354 | return next(); |
352 | } | 355 | } |
@@ -378,7 +381,10 @@ const bind = { | @@ -378,7 +381,10 @@ const bind = { | ||
378 | 381 | ||
379 | // 通过邮箱绑定手机号发送短信 | 382 | // 通过邮箱绑定手机号发送短信 |
380 | sendMsgApi: (req, res, next) => { | 383 | sendMsgApi: (req, res, next) => { |
381 | - req.ctx(BindServiceModel).sendChangeBindMobileCodeOnly(req.body).then(result => { | 384 | + req.ctx(BindServiceModel).sendChangeBindMobileCodeOnly(Object.assign({}, req.body, { |
385 | + udid: req.cookies.udid, | ||
386 | + superCapture: req.body.geetest_challenge ? config.superCapture : '' | ||
387 | + })).then(result => { | ||
382 | if (_.get(result, 'code', 400) === 200) { | 388 | if (_.get(result, 'code', 400) === 200) { |
383 | return next(); | 389 | return next(); |
384 | } | 390 | } |
@@ -107,7 +107,10 @@ class BindServiceModel extends global.yoho.BaseModel { | @@ -107,7 +107,10 @@ class BindServiceModel extends global.yoho.BaseModel { | ||
107 | method: 'app.bind.sendChangeBindMobileCodeOnlyImg', | 107 | method: 'app.bind.sendChangeBindMobileCodeOnlyImg', |
108 | business_line: 'yohobuy', | 108 | business_line: 'yohobuy', |
109 | mobile: params.mobile || '', | 109 | mobile: params.mobile || '', |
110 | - area: params.area || '86' | 110 | + area: params.area || '86', |
111 | + degrees: params.captcha || '', | ||
112 | + superCapture: params.superCapture || '', | ||
113 | + fromPage: PAGE | ||
111 | }}); | 114 | }}); |
112 | } | 115 | } |
113 | 116 | ||
@@ -140,7 +143,10 @@ class BindServiceModel extends global.yoho.BaseModel { | @@ -140,7 +143,10 @@ class BindServiceModel extends global.yoho.BaseModel { | ||
140 | method: 'app.bind.sendThirdBindMobileCodeOnlyImg', | 143 | method: 'app.bind.sendThirdBindMobileCodeOnlyImg', |
141 | business_line: 'yohobuy', | 144 | business_line: 'yohobuy', |
142 | mobile: params.mobile || '', | 145 | mobile: params.mobile || '', |
143 | - area: params.area || '86' | 146 | + area: params.area || '86', |
147 | + superCapture: params.superCapture || '', | ||
148 | + degrees: params.captcha || '', | ||
149 | + fromPage: PAGE | ||
144 | }}); | 150 | }}); |
145 | } | 151 | } |
146 | 152 |
-
Please register or login to post a comment