mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-01 20:13:12 +08:00
🎨 #1909 【企业微信】第三方应用路由规则类增加msgType和event的支持
This commit is contained in:
@ -74,6 +74,28 @@ public class WxCpTpMessageRouterRule {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 如果msgType等于某值
|
||||||
|
*
|
||||||
|
* @param msgType the msg type
|
||||||
|
* @return the wx cp tp message router rule
|
||||||
|
*/
|
||||||
|
public WxCpTpMessageRouterRule msgType(String msgType) {
|
||||||
|
this.msgType = msgType;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 如果event等于某值
|
||||||
|
*
|
||||||
|
* @param event the event
|
||||||
|
* @return the wx cp tp message router rule
|
||||||
|
*/
|
||||||
|
public WxCpTpMessageRouterRule event(String event) {
|
||||||
|
this.event = event;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 匹配 Message infoType
|
* 匹配 Message infoType
|
||||||
*
|
*
|
||||||
@ -192,6 +214,8 @@ public class WxCpTpMessageRouterRule {
|
|||||||
&&
|
&&
|
||||||
(this.msgType == null || this.msgType.equalsIgnoreCase(wxMessage.getMsgType()))
|
(this.msgType == null || this.msgType.equalsIgnoreCase(wxMessage.getMsgType()))
|
||||||
&&
|
&&
|
||||||
|
(this.event == null || this.event.equalsIgnoreCase(wxMessage.getEvent()))
|
||||||
|
&&
|
||||||
(this.infoType == null || this.infoType.equals(wxMessage.getInfoType()))
|
(this.infoType == null || this.infoType.equals(wxMessage.getInfoType()))
|
||||||
&&
|
&&
|
||||||
(this.suiteTicket == null || this.suiteTicket.equalsIgnoreCase(wxMessage.getSuiteTicket()))
|
(this.suiteTicket == null || this.suiteTicket.equalsIgnoreCase(wxMessage.getSuiteTicket()))
|
||||||
|
|||||||
Reference in New Issue
Block a user