This commit is contained in:
richboo111
2024-01-11 10:11:21 +08:00
parent 725f497559
commit 990f74a5b9

View File

@@ -199,9 +199,12 @@ func ReadMsgFromVendor(vendorID int, elmAppID string, msg []byte) error {
if vendorID == VendorIDMT {
var PushContentReq = mtwmapi.PushContentReq{}
err = json.Unmarshal(msg, &PushContentReq)
if FilterIm(PushContentReq.AppID, PushContentReq.MsgContent) { //自动回复消息过滤
return nil
if len(PushContentReq.MsgContent) != 0 || PushContentReq.MsgContent != "" {
if FilterIm(PushContentReq.AppID, PushContentReq.MsgContent) { //自动回复消息过滤
return nil
}
}
jxMsg = &JXMsg{
SendType: SendTypeMt,
MsgContent: PushContentReq,