Authored by 郝肖肖

'flx'

... ... @@ -347,7 +347,6 @@ const bind = {
// 第三方绑定手机号发送短信
thirdSendMsgApi: (req, res, next) => {
let params = {
from: req.cookies.from || 'yohobuy',
superCapture: req.body.geetest_challenge ? config.superCapture : ''
};
... ... @@ -365,11 +364,7 @@ const bind = {
return res.json({code: 401, data: {}, message: '请重新登录授权'});
}
let params = {
from: req.cookies.from || 'yohobuy'
};
req.ctx(BindServiceModel).thirdBindMobile(Object.assign({}, req.body, params)).then(result => {
req.ctx(BindServiceModel).thirdBindMobile(req.body).then(result => {
if (_.get(result, 'code', 400) !== 200) {
return res.json(result);
}
... ... @@ -388,7 +383,6 @@ const bind = {
// 通过邮箱绑定手机号发送短信
sendMsgApi: (req, res, next) => {
let params = {
from: req.cookies.from || 'yohobuy',
superCapture: req.body.geetest_challenge ? config.superCapture : ''
};
... ... @@ -403,7 +397,6 @@ const bind = {
// 检查手机是否绑定
changeMobileCheckApi: (req, res, next) => {
let params = {
from: req.cookies.from || 'yohobuy',
superCapture: req.body.geetest_challenge ? config.superCapture : ''
};
... ... @@ -455,7 +448,6 @@ const bind = {
let params = {
email: req.session.bindEmail,
password: req.session.bindPassword,
from: req.cookies.from || 'yohobuy',
};
req.ctx(BindServiceModel).bindEmailLoginMobile(Object.assign({}, req.body, params)).then(result => {
... ...
... ... @@ -105,7 +105,6 @@ class BindServiceModel extends global.yoho.BaseModel {
sendChangeBindMobileCodeOnly(params) {
return this.get({data: {
method: 'app.bind.sendChangeBindMobileCodeOnlyImg',
business_line: FROM[params.from].business_line,
mobile: params.mobile || '',
area: params.area || '86',
degrees: params.captcha || '',
... ... @@ -119,7 +118,6 @@ class BindServiceModel extends global.yoho.BaseModel {
return this.get({
data: Object.assign({
method: 'app.bind.changeMobileCheck',
business_line: FROM[params.from].business_line,
}, params)
});
}
... ... @@ -128,7 +126,6 @@ class BindServiceModel extends global.yoho.BaseModel {
bindEmailLoginMobile(params) {
return this.get({data: {
method: 'app.bind.bindEmailLoginMobile',
business_line: FROM[params.from].business_line,
mobile: params.mobile || '',
area: params.area || '86',
code: params.code,
... ... @@ -141,7 +138,6 @@ class BindServiceModel extends global.yoho.BaseModel {
sendThirdBindMobileCodeOnly(params) {
return this.get({data: {
method: 'app.bind.sendThirdBindMobileCodeOnlyImg',
business_line: FROM[params.from].business_line,
mobile: params.mobile || '',
area: params.area || '86',
superCapture: params.superCapture || '',
... ... @@ -154,7 +150,6 @@ class BindServiceModel extends global.yoho.BaseModel {
thirdBindMobile(params) {
return this.get({data: {
method: 'app.bind.bindMobile',
business_line: FROM[params.from].business_line,
mobile: params.mobile || '',
area: params.area || '86',
code: params.code,
... ...
{
"name": "yohobuywap-node",
"version": "6.5.2",
"version": "6.5.3",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...