public WXMsgTypeAttribute(WXMsgType msg_type) { this.msg_type = msg_type; event_type = WXEventType.Unknown; }
public WXMsgTypeAttribute(WXEventType event_type) { msg_type = WXMsgType.@event; this.event_type = event_type; }
/// <summary> /// 指定openIds发送微信消息 /// </summary> /// <param name="openIds">发送openId集合</param> /// <param name="msgType">类型</param> /// <param name="content">文本内容</param> /// <param name="mediaId">模板ID</param> /// <param name="appId"></param> /// <param name="appSecret"></param> /// <returns></returns> public static SendInfoResult SendWXMsg(IEnumerable <string> openIds, WXMsgType msgType, string content, string mediaId, string appId, string appSecret) { return(_iWXMsgTemplateService.SendWXMsg(openIds, msgType, content, mediaId, appId, appSecret)); }