微信对话平台自建客服,通过OPENAI小程序回复消息时,会触发2次通知,导致回复内容重复,麻烦处理下。
接收消息xml如下:
第一次接收的消息:
<xml>
<userid>oPhPj5PwJwnK1w1EmDW2Xpfxwtk4</userid>
<appid>wx97fb3a018a8c95a5</appid>
<content>
<answer>啊啊啊啊啊啊</answer>
</content>
<kefu>
<account>f4CNQBOqccX</account>
<nickname>A~จุ๊บ</nickname>
<headimgurl>https://thirdwx.qlogo.cn/mmopen/vi_32/ia4XD5JRt8aiaCO63aW61bq3Cm5ibeKgrtpwVoh3b08Nm8x3zDZaluRm7kynuibqBVLpEV9GkQB2BiaicER1G4R4rH9Q/132</headimgurl>
</kefu>
<from>2</from>
<status>1</status>
<channel>0</channel>
<createtime>1640162955</createtime>
</xml>
第二次接收的消息:
<xml>
<userid>oPhPj5PwJwnK1w1EmDW2Xpfxwtk4</userid>
<appid/>
<content>
<answer>啊啊啊啊啊啊</answer>
</content>
<from>2</from>
<status>1</status>
<channel>0</channel>
<msgtype>unknow</msgtype>
<assessment/>
<createtime>1640162954790</createtime>
</xml>