使用群发消息接口,发送文本内容时,我们发现当天同一文本内容多次发送,返回了不同的msgDataId(但mpnews类型,同一个mediaId,当天多次发送则只有一个msgDataId)。
目前我们公众号发送文本次数较多,导致次日图文统计getarticlesummary接口,最多时 该接口一次返回了近4万数据(该接口不支持分页)。并且发现返回报文中的msgDataId有时候和getarticletotal接口返回内容不一致,存在缺少MsgDataId数据的情况。
4月1日示例数据,MASSSENDJOBFINISH事件消息(同一文本内容)如下:
示例(1)时间:2024-04-01 08:39:10.103
<xml><ToUserName><![CDATA[]]></ToUserName>
<FromUserName><![CDATA[oaJbgjoovhNqK1B7jv34w9oW8WXU]]></FromUserName>
<CreateTime>1711931950</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[MASSSENDJOBFINISH]]></Event>
<MsgID>3162228393</MsgID>
<Status><![CDATA[send success]]></Status>
<TotalCount>2</TotalCount>
<FilterCount>1</FilterCount>
<SentCount>1</SentCount>
<ErrorCount>0</ErrorCount>
<CopyrightCheckResult><Count>0</Count>
<ResultList></ResultList>
<CheckState>1</CheckState>
</CopyrightCheckResult>
<ArticleUrlResult><Count>1</Count>
<ResultList><item><ArticleIdx>1</ArticleIdx>
<ArticleUrl><![CDATA[http://mp.weixin.qq.com/s/YIpdZXAJnouoMDBfHxQG1A]]></ArticleUrl>
</item>
</ResultList>
</ArticleUrlResult>
</xml>
示例(2)时间:2024-04-01 08:48:09.013
<xml><ToUserName><![CDATA[]]></ToUserName>
<FromUserName><![CDATA[oaJbgjoovhNqK1B7jv34w9oW8WXU]]></FromUserName>
<CreateTime>1711932488</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[MASSSENDJOBFINISH]]></Event>
<MsgID>3162228394</MsgID>
<Status><![CDATA[send success]]></Status>
<TotalCount>2</TotalCount>
<FilterCount>1</FilterCount>
<SentCount>1</SentCount>
<ErrorCount>0</ErrorCount>
<CopyrightCheckResult><Count>0</Count>
<ResultList></ResultList>
<CheckState>1</CheckState>
</CopyrightCheckResult>
<ArticleUrlResult><Count>1</Count>
<ResultList><item><ArticleIdx>1</ArticleIdx>
<ArticleUrl><![CDATA[http://mp.weixin.qq.com/s/Fj0ZCpU0qrc_hXPPnTwAuA]]></ArticleUrl>
</item>
</ResultList>
</ArticleUrlResult>
</xml>
示例(3)时间:2024-04-01 09:01:08.810
<xml><ToUserName><![CDATA[]]></ToUserName>
<FromUserName><![CDATA[oaJbgjoovhNqK1B7jv34w9oW8WXU]]></FromUserName>
<CreateTime>1711933268</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[MASSSENDJOBFINISH]]></Event>
<MsgID>3162228397</MsgID>
<Status><![CDATA[send success]]></Status>
<TotalCount>2</TotalCount>
<FilterCount>1</FilterCount>
<SentCount>1</SentCount>
<ErrorCount>0</ErrorCount>
<CopyrightCheckResult><Count>0</Count>
<ResultList></ResultList>
<CheckState>1</CheckState>
</CopyrightCheckResult>
<ArticleUrlResult><Count>1</Count>
<ResultList><item><ArticleIdx>1</ArticleIdx>
<ArticleUrl><![CDATA[http://mp.weixin.qq.com/s/Dj2jB6YrEkqSxNExwq82Lg]]></ArticleUrl>
</item>
</ResultList>
</ArticleUrlResult>
</xml>
根据OpenID列表群发 接口