protected void Page_Load(object sender, EventArgs e) { IDAL.IAuthor ia = BllFactory.BllAccess.CreateIAuthorBLL(); string userID = Request["ids"].ToString(); userID = userID.Remove(userID.Length - 1, 1); //移掉最后一个逗号 string[] uidstring = userID.Split(','); int[] UserSID = new int[uidstring.Length]; for (int i = 0; i < UserSID.Length; i++) { UserSID[i] = Convert.ToInt32(uidstring[i]); } int count = ia.AuthorCheckNo(UserSID); if (count > 0) { Response.Write("{success:true,msg:'操作成功'}"); } else { Response.Write("{success:false,msg:'操作失败'}"); } }
//作者审核不通过 public int AuthorCheckNo(int userId) { return(IA.AuthorCheckNo(userId)); }