帖子
帖子
用户
博客
课程
显示全部楼层
16
帖子
0
勋章
74
Y币

[其他] tencentIm 即时通讯怎样查到id=1的用户

[复制链接]
发表于 2021-5-8 14:04:26
问题:腾讯云即时通讯无法获取好友头像和昵称 怎样测试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));
                        }
                    });




380
帖子
4
勋章
6
Y币
  tencentIm.getUsersProfile({
                        users: ['1'],
                        forceUpdate: true,
                    }, function (ret, err) {
您需要登录后才可以回帖 登录

本版积分规则