Authored by 毕凯

Merge branch 'feature/bugfix61' into 'release/6.1'

FROM



See merge request !939
@@ -85,6 +85,7 @@ class Reg { @@ -85,6 +85,7 @@ class Reg {
85 let inviteCode = req.body.inviteCode || ''; 85 let inviteCode = req.body.inviteCode || '';
86 let isFromMy = _.get(req.session, 'phoneReg.isFromMy', '0'); 86 let isFromMy = _.get(req.session, 'phoneReg.isFromMy', '0');
87 let token = req.body.token; 87 let token = req.body.token;
  88 + let clientIp = req.yoho.clientIp || '';
88 let from = req.cookies.from || 'yohobuy'; 89 let from = req.cookies.from || 'yohobuy';
89 90
90 // 购物车key 91 // 购物车key
@@ -122,7 +123,7 @@ class Reg { @@ -122,7 +123,7 @@ class Reg {
122 } 123 }
123 124
124 let regMobileAesResult = yield RegService.regMobileAes(area, mobile, password, 125 let regMobileAesResult = yield RegService.regMobileAes(area, mobile, password,
125 - shoppingKey, smsCode, inviteCode, isFromMy, from); 126 + shoppingKey, smsCode, inviteCode, isFromMy, clientIp, from);
126 127
127 if (regMobileAesResult.code !== 200 || !regMobileAesResult.data || 128 if (regMobileAesResult.code !== 200 || !regMobileAesResult.data ||
128 !regMobileAesResult.data.uid) { 129 !regMobileAesResult.data.uid) {
@@ -335,7 +335,7 @@ class SmsLogin { @@ -335,7 +335,7 @@ class SmsLogin {
335 let resultCopy = null; 335 let resultCopy = null;
336 336
337 RegService.regMobileAes(area, mobile, password, 337 RegService.regMobileAes(area, mobile, password,
338 - shoppingKey, registerCode, null, clientIp, from).then(result => { 338 + shoppingKey, registerCode, '0', clientIp, from).then(result => {
339 if (!result.code || result.code !== 200) { 339 if (!result.code || result.code !== 200) {
340 return res.send(result); 340 return res.send(result);
341 } 341 }
@@ -39,7 +39,7 @@ const BindService = { @@ -39,7 +39,7 @@ const BindService = {
39 code: code 39 code: code
40 }); 40 });
41 }, 41 },
42 - bindMobile(openId, sourceType, mobile, area, password, nickname, from) { 42 + bindMobile(openId, sourceType, mobile, area, password, from, nickname) {
43 let params = { 43 let params = {
44 method: 'app.passport.bind', 44 method: 'app.passport.bind',
45 mobile: mobile, 45 mobile: mobile,