示例#1
0
        /// <summary>
        /// 查询用户信息
        /// </summary>
        /// <param name="id"></param>
        private void QueryUserInfo(string id)
        {
            var info = GroupPublicFunction.QueryUserInfo(id);

            _targetUser.accid = info.accid;
            ThreadPool.QueueUserWorkItem(m => UpdateAccid());
        }
示例#2
0
        /// <summary>
        /// 查询用户信息
        /// </summary>
        private async void QueryUserInfo()
        {
            await Task.Run(() =>
            {
                CurrentProfile = GroupPublicFunction.QueryUserInfo(AntSdkService.AntSdkCurrentUserInfo.userId);
            });

            if (CurrentProfile == null)
            {
                CurrentProfile = AntSdkService.AntSdkCurrentUserInfo;
            }
            SetUserInfo();
            var modify = new AntSdkReceivedUserMsg.Modify();

            if (CurrentProfile != null)
            {
                var user = new Modify_content {
                    picture = CurrentProfile.picture
                };
                modify.attr = user;
            }
            modify.userId = AntSdkService.AntSdkCurrentUserInfo.userId;
            OnQueryInfoHandler(modify);
        }