...
|
...
|
@@ -18,7 +18,7 @@ exports.page = (req, res, next) => { |
|
|
|
|
|
userApi.profile(req.user.uid)
|
|
|
.then(userinfo => {
|
|
|
userinfo = userinfo.data;
|
|
|
userinfo = userinfo.data || {};
|
|
|
|
|
|
res.render('chat/index', {
|
|
|
module: 'service',
|
...
|
...
|
@@ -30,7 +30,7 @@ exports.page = (req, res, next) => { |
|
|
imSocket: global.yoho.config.domains.imSocket,
|
|
|
userData: {
|
|
|
encrypteduid: crypto.encryption(null, uid + ''),
|
|
|
avatar: helpers.image(userinfo.head_ico, 100, 100),
|
|
|
avatar: userinfo.head_ico ? helpers.image(userinfo.head_ico, 100, 100) : '',
|
|
|
uname: userinfo.profile_name
|
|
|
}
|
|
|
});
|
...
|
...
|
|