Exemple #1
0
 public DataSet DeleteListEx(string Ids, out int Result, bool IsSendMess = false, int SendUserID = 1)
 {
     List<int> photoUserIds = this.GetPhotoUserIds(Ids);
     DataSet set = this.dal.DeleteListEx(Ids, out Result);
     if ((Result > 0) && IsSendMess)
     {
         SiteMessage message = new SiteMessage();
         foreach (int num in photoUserIds)
         {
             message.AddMessageByUser(SendUserID, num, "图片删除", "您的图片涉嫌非法内容,管理员已删除! 如有疑问,请联系网站管理员");
         }
     }
     return set;
 }
Exemple #2
0
 public bool DeleteListByNormalPost(string PostIDs, bool IsSendMess = false, int SendUserID = 1)
 {
     List<int> postUserIds = this.GetPostUserIds(PostIDs);
     bool flag = this.dal.DeleteListByNormalPost(PostIDs);
     if (flag && IsSendMess)
     {
         SiteMessage message = new SiteMessage();
         foreach (int num in postUserIds)
         {
             message.AddMessageByUser(SendUserID, num, "动态删除", "您分享的动态涉嫌非法内容,管理员已删除! 如有疑问,请联系网站管理员");
         }
     }
     return flag;
 }