public virtual JArray MemberFromUIDs(HttpContext context) { YZRequest request = new YZRequest(context); JArray jPost = request.GetPostData <JArray>(); BPMObjectNameCollection uids = jPost.ToObject <BPMObjectNameCollection>(); JArray rv = new JArray(); using (BPMConnection cn = new BPMConnection()) { cn.WebOpen(); foreach (string uid in uids) { User user = User.TryGetUser(cn, uid); //已删除和禁用的用户不显示 if (user == null || user.Disabled) { continue; } Member member = OrgSvr.TryGetMemberFromAccount(cn, user.Account); if (member == null) { member = new Member(); } rv.Add(this.Serialize(member, user)); } } return(rv); }