Authored by 郝肖肖

代码检查

... ... @@ -246,7 +246,12 @@ const bind = {
sourceType: sourceType + '_relate'
});
return loginService.syncUserSession(result.data.uid, req, res, result.data.session_key).then(() => {
return loginService.syncUserSession(
result.data.uid,
req,
res,
result.data.session_key
).then(() => {
return {code: 200, message: result.message, data: {refer: refer}};
});
} else {
... ...
... ... @@ -92,8 +92,10 @@ const applysave = (req, res, next) => {
try {
for (let key in req.body) {
key = key + '';
param[_.camelCase(key)] = req.body[key];
if (req.body[key]) {
key = key + '';
param[_.camelCase(key)] = req.body[key];
}
}
} catch (e) {
console.log(e);
... ...