Commit 0e9f4cf1 authored by 任国军's avatar 任国军

add receive check

parent 39d7eebc
Pipeline #15273 passed with stage
in 36 seconds
......@@ -30,8 +30,12 @@ class WechatService extends Service {
async sendMsg(data) {
const { ctx } = this;
if (ctx.isEmpty(data)) {
return;
}
//只有MsgType为miniprogrampage才发送
if (!ctx.isEmpty(data.MsgType) || !ctx.isEmpty(data.Title) || data.MsgType != 'miniprogrampage' || data.Title != '趣选课') {
if (ctx.isEmpty(data.MsgType) || ctx.isEmpty(data.Title) || data.MsgType !== 'miniprogrampage' || data.Title !== '趣选课') {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment