public static void Add(string title, string content, string receUser) { M_User_Notify model = new M_User_Notify(); model.Title = title; model.Content = content; model.AppendReceUser(receUser); Add(model); }
/// <summary> /// 添加一条新通知,Title限定60字符,内容:4000 /// </summary> public static void Add(M_User_Notify model) { if (model.ReceUsers.Count < 1) { return; } if (model.ExpireTime < 1) { model.ExpireTime = 10; } model.Title = StringHelper.SubStr(model.Title); model.Content = StringHelper.SubStr(model.Content, 4000); NotifyList.Add(model); }