- 企业微信回调重复问题?
[图片] 在文档中提到了回调下发在五秒内响应则不会重复下发,目前个人遇到的问题是在1s内必定连续收到了同一个回调下发2次,。 [2021-08-05 16:23:02.223] [INFO ] [http-nio-8090-exec-7] [WeCallBackController.java:49] - 企微回调通知接口 wxCpXmlMessage:{"approvalInfo":{},"batchJob":{},"changeType":"update","chatId":"","createTime":1628151775,"event":"change_external_chat","extAttrs":{"items":[]},"fromUserName":"sys","memberChangeCnt":"2","msgType":"event","quitScene":"0","scanCodeInfo":{},"sendLocationInfo":{},"sendPicsInfo":{"picList":[]},"toUserName":"","updateDetail":"del_member"} [2021-08-05 16:23:02.224] [INFO ] [http-nio-8090-exec-7] [WeCallBackController.java:59] - 企微回调通知接口处理耗时:0 [2021-08-05 16:23:02.247] [INFO ] [http-nio-8090-exec-8] [WeCallBackController.java:49] - 企微回调通知接口 wxCpXmlMessage:{"approvalInfo":{},"batchJob":{},"changeType":"dismiss","chatId":"","createTime":1628151775,"event":"change_external_chat","extAttrs":{"items":[]},"fromUserName":"sys","msgType":"event","scanCodeInfo":{},"sendLocationInfo":{},"sendPicsInfo":{"picList":[]},"toUserName":""} [2021-08-05 16:23:02.248] [INFO ] [http-nio-8090-exec-8] [WeCallBackController.java:59] - 企微回调通知接口处理耗时:0 [2021-08-05 16:23:02.257] [INFO ] [http-nio-8090-exec-9] [WeCallBackController.java:49] - 企微回调通知接口 wxCpXmlMessage:{"approvalInfo":{},"batchJob":{},"changeType":"update","chatId":"","createTime":1628151775,"event":"change_external_chat","extAttrs":{"items":[]},"fromUserName":"sys","memberChangeCnt":"2","msgType":"event","quitScene":"0","scanCodeInfo":{},"sendLocationInfo":{},"sendPicsInfo":{"picList":[]},"toUserName":"","updateDetail":"del_member"} [2021-08-05 16:23:02.258] [INFO ] [http-nio-8090-exec-9] [WeCallBackController.java:59] - 企微回调通知接口处理耗时:0 [2021-08-05 16:23:02.262] [INFO ] [http-nio-8090-exec-10] [WeCallBackController.java:49] - 企微回调通知接口 wxCpXmlMessage:{"approvalInfo":{},"batchJob":{},"changeType":"dismiss","chatId":"","createTime":1628151775,"event":"change_external_chat","extAttrs":{"items":[]},"fromUserName":"sys","msgType":"event","scanCodeInfo":{},"sendLocationInfo":{},"sendPicsInfo":{"picList":[]},"toUserName":""} [2021-08-05 16:23:02.262] [INFO ] [http-nio-8090-exec-10] [WeCallBackController.java:59] - 企微回调通知接口处理耗时:0
2021-08-05 - 企业微信会话存档拉取失败,slice是否需要释放?
long slice = Finance.NewSlice(); ret = Finance.GetChatData(sdk, seq, limit, args[3], args[4], Integer.parseInt(args[5]), slice); if (ret != 0) { System.out.println("getchatdata ret " + ret); return; } System.out.println("getchatdata :" + Finance.GetContentFromSlice(slice)); Finance.FreeSlice(slice); 如上,slice在ret返回失败,是否也需要调用释放的方法?
2021-07-30 - 企业微信会话存档拉取消息10001,网络错误怎么解决?
int ret = Finance.GetChatData(sdk, seq, 1000, "", "", timeout, slice); 未使用代理 使用API文档中的方式去拉取会话数据,刚开始一两次还能拉取成功,后面拉取就一直是10001网络错误。
2021-07-30