12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Data;
- using System.Text.RegularExpressions;
- using Library;
- using MySystem.Service.Main;
- using MySystem.Service.Bs;
- using System.IO;
- using System.Web;
- using Microsoft.IdentityModel.Tokens;
- using System.Security.Claims;
- using System.IdentityModel.Tokens.Jwt;
- using System.Text;
- using AppConfig;
- namespace MySystem
- {
- /// <summary>
- /// 基础功能方法
- /// </summary>
- public class BaseClass
- {
- #region 推送个人消息
- /// <summary>
- /// 推送个人消息
- /// </summary>
- /// <param name="UserId">接收创客</param>
- /// <param name="MsgType">展示类型(0 html页面 1 指定url 2 简单中文描述)</param>
- /// <param name="Title">标题</param>
- /// <param name="Content">内容</param>
- /// <param name="Summary">简介</param>
- public static void SendPersonalMsg(int UserId, int MsgType, string Title, string Content, string Summary)
- {
- RedisDbconn.Instance.AddList("MsgPersonalQueue", Newtonsoft.Json.JsonConvert.SerializeObject(new MySystem.Models.Main.MsgPersonal()
- {
- UserId = UserId, //接收创客
- MsgType = MsgType, //展示类型
- Title = Title, //标题
- Content = Content, //内容
- Summary = Summary, //简介
- }));
- }
- #endregion
- }
- }
|