1.需求:根据不同的发送位置做不同的处理。所以自定义了发送位置事件。eventKey为publish。可能用到多个发送位置作不同处理。
2.问题:用户发送位置时,后台收到一个带有eventKey的location_select事件,和location事件(没有eventKey)。
我需要处理完location_select(带eventKey为publish)的事件后,回复消息。
3.结果:用户不收到消息。
4.发现:location事件回复真正消息,用户能收到;location事件回复""且location_select事件回复真正消息,用户收不到。
5.猜测:因为腾讯同时向我发出了两条请求,会不会排重原因location事件回复覆盖掉location_select事件。
<FromUserName><![CDATA[oUqtYx0]]></FromUserName>
<CreateTime>1742716069</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[location_select]]></Event>
<EventKey><![CDATA[push_car_in]]></EventKey>
<SendLocationInfo><Location_X><![CDATA[XX.203168701311291]]></Location_X>
<Location_Y><![CDATA[XX.52965488217018]]></Location_Y>
<Scale><![CDATA[15]]></Scale>
<Label><![CDATA[]]></Label>
<Poiname><![CDATA[XXXXX]]></Poiname>
</SendLocationInfo>
</xml>)]
<FromUserName><![CDATA[oZqtYx0]]></FromUserName>
<CreateTime>1742716068</CreateTime>
<MsgType><![CDATA[location]]></MsgType>
<Location_X>XX.203169</Location_X>
<Location_Y>XX.529655</Location_Y>
<Scale>15</Scale>
<Label><![CDATA[]]></Label>
<MsgId>2494XX7XX</MsgId>
</xml>)]