1.0.1 • Published 3 years ago
qywx-msg v1.0.1
企业微信应用消息控件
兼容应用消息markdown格式 使用方法
const {WeChatMsg} = require('qywx-msg'); //引入企业微信消息模块
// corpId 企业id
// corpSecret 企业应用中 Secret
// agentId 企业应用中 AgentId
const Notify = new WeChatMsg(corpId,corpSecret,agentId);
// item 为markdown文本
// user 用户默认 @all
Notify.appMsg(item,user)