|
[其他]
tencentIm 即时通讯怎样查到id=1的用户
[复制链接]
问题:腾讯云即时通讯无法获取好友头像和昵称 怎样测试ID=1的用户信息
tencentIm 即时通讯怎样查到id=1的用户
var tencentIm = api.require('tencentIm');
tencentIm.getUsersProfile({
users: [api.pageParam.name],
forceUpdate: true,
}, function (ret, err) {
console.log(ret)
if (ret.status == true) {
$api.log(ret)
_this.faceUrl = ret.selfProfiles[0].faceUrl
_this.nickName = ret.selfProfiles[0].nickName
} else {
alert(JSON.stringify(err));
}
});
|
|