//忽略举报信息 public bool hulueReport(int messageId) { starweibo.Model.messageInfo onemsg = new messageInfo(); starweibo.BLL.messageInfo bllmsg = new starweibo.BLL.messageInfo(); onemsg = bllmsg.GetModel(messageId); onemsg.msgState = "read"; return(bllmsg.Update(onemsg)); }
//被举报用户禁言 public bool jinyan(int messageId, int userId) { starweibo.Model.messageInfo onemsg = new messageInfo(); starweibo.BLL.messageInfo bllmsg = new starweibo.BLL.messageInfo(); onemsg = bllmsg.GetModel(messageId); onemsg.msgState = "read"; bllmsg.Update(onemsg); starweibo.Model.powerInfo onemsgP = new powerInfo(); starweibo.BLL.powerInfo bllmsgP = new starweibo.BLL.powerInfo(); onemsgP = bllmsgP.GetModel(userId); onemsgP.fasong = "0"; return(bllmsgP.Update(onemsgP)); }
//被举报微博删除 public bool Delete(int messageId, int blogId) { starweibo.Model.messageInfo onemsg = new messageInfo(); starweibo.BLL.messageInfo bllmsg = new starweibo.BLL.messageInfo(); onemsg = bllmsg.GetModel(messageId); onemsg.msgState = "read"; bllmsg.Update(onemsg); starweibo.Model.blogInfo oneblog = new blogInfo(); starweibo.BLL.blogInfo bllmsgP = new starweibo.BLL.blogInfo(); oneblog = bllmsgP.GetModel(blogId); oneblog.blogState = "1"; return(bllmsgP.Update(oneblog)); }