private static void NotifyClubUser(Game game) { var clubUses = ClubHelper.GetClubUserIdList(game.ClubId); if (clubUses.IsNotNullOrEmpty()) { var club = ClubHelper.GetClub(game.ClubId); string msg = string.Format("{0}创建了比赛[{1}],比赛时间[{2}],请积极报名参加。", club.Name, game.Name, game.PlayBeginTime.ToString(Constant.DateTimeFormatCN)); JPushHelper.SendNotify(MasterType.GAME.Id, game.Id, msg, clubUses); } }
private static void SendNotifyToClubUser(Activity activity) { var clubUses = ClubHelper.GetClubUserIdList(activity.ClubId); if (clubUses.IsNotNullOrEmpty()) { var club = ClubHelper.GetClub(activity.ClubId); string msg = string.Format("{0}创建了活动{1},开始时间{2}。请积极报名参加。", club.Name, activity.Name, activity.BeginTime.ToString(Constant.DateTimeFormatCN)); JPushHelper.SendNotify(MasterType.ACTIVITY.Id, activity.Id, msg, clubUses); } }