Authored by 刘传洋

m

... ... @@ -276,7 +276,7 @@ const getUserInfo = (uid) => {
userApi.getUserHabitsInfo(uid),
userApi.getUserLikeBrand(uid),
userApi.getFavorBrand(),
userApi.getCanRemoveBindOpenIdTag(uid)
userApi.getCanRemoveBindOpenIdTag()
// searchApi.get('/brand/list.json', {}, {cache: true})
]);
... ... @@ -603,16 +603,16 @@ const getUserInfo = (uid) => {
};
const editUserInfo = (req, uid) => {
let userInfo = {},
respData;
userInfo.uid = uid;
userInfo.nickname = _.trim(req.body.nickname);
userInfo.username = _.trim(req.body.username);
userInfo.gender = req.body.gender || 3;
userInfo.birthday = req.body.year === '' ? '' : formatDate(req.body.year, req.body.month, req.body.day);
userInfo.profession = req.body.profession || 0;
userInfo.income = req.body.income || 0;
let respData,
userInfo = {
uid: uid,
nickname: _.trim(req.body.nickname),
username: _.trim(req.body.username),
gender: req.body.gender || 3,
birthday: req.body.year === '' ? '' : formatDate(req.body.year, req.body.month, req.body.day),
profession: req.body.profession || 0,
income: req.body.income || 0
};
if (!userInfo.nickname || !userInfo.username || userInfo.birthday === '') {
respData = {
... ...