Authored by yyq

change udid

... ... @@ -218,11 +218,7 @@ const local = {
})(req, res, next);
},
logout: (req, res) => {
if (req.session) {
_.unset(req.session, 'TOKEN_');
_.unset(req.session, 'LOGIN_UID_');
_.unset(req.session, 'USER_MOBILE');
}
req.session.reset();
res.clearCookie('_UID', {
domain: config.cookieDomain
... ...
... ... @@ -275,7 +275,8 @@ let mobileRegister = (req, res, next) => {
/* 手机注册: 调用注册接口*/
let regResult = yield req.ctx(RegService).regMobileAes(
area, mobile, password, code, cookie.getShoppingKey(req), inviteCode, clientIp
area, mobile, password, code, cookie.getShoppingKey(req), inviteCode, clientIp,
{udid: req.yoho.udid}
);
if (!regResult.code || regResult.code !== 200) {
... ...
... ... @@ -35,13 +35,13 @@ module.exports = class extends global.yoho.BaseModel {
return this.post({data: params});
}
regMobileAes(area, mobile, password, code, shoppingKey, inviteCode) {
regMobileAes(area, mobile, password, code, shoppingKey, inviteCode, other = {}) {
let params = {
method: 'app.passport.registerAES',
area: area,
profile: mobile,
password: aes.aesPwd(password),
verifyCode: code
verifyCode: code,
};
if (shoppingKey) {
... ... @@ -52,6 +52,10 @@ module.exports = class extends global.yoho.BaseModel {
params.inviteCode = inviteCode;
}
if (other.udid) {
params.udid = other.udid;
}
return this.post({data: params});
}
};
... ...
... ... @@ -176,8 +176,8 @@ function getListDataPre(params, channel) {
if (cdata) {
try {
hasCache = true;
cdata = JSON.parse(cdata);
hasCache = true;
} catch (e) {
logger.debug('list render cache data parse fail.');
}
... ... @@ -297,8 +297,8 @@ function getListNewDataPre(params, channel) {
if (cdata) {
try {
hasCache = true;
cdata = JSON.parse(cdata);
hasCache = true;
} catch (e) {
logger.debug('list_new render cache data parse fail.');
}
... ...
... ... @@ -199,8 +199,8 @@ function getSearchDataPre(params, channel) {
if (cdata) {
try {
hasCache = true;
cdata = JSON.parse(cdata);
hasCache = true;
} catch (e) {
logger.debug('search render cache data parse fail.');
}
... ...