企业微信回调:添加外部联系人事件, 微信回调过来的接口未带业务参数?

企业微信 文章 2020-08-28 16:41 1838 0 全屏看文

AI助手支持GPT4.0

企业微信回调:添加外部联系人事件, 微信回调过来的接口未带业务参数?Enterprise WeChat Callback: Add an external contact event, but the WeChat callback interface does not carry business parameters?

企业微信回调:添加外部联系人事件, 微信回调过来的接口未带业务参数?

添加外部联系人事件,配置了后台的回调接口。


回调时 这些参数没有,接口只有msg_signature  timestamp  nonce 这三个参数。

为什么回调没有这些参数

corpId:ww397c1fff12c90831

Add external contact events and configure the callback interface in the background. When calling back, these parameters are not available. The interface is only MSG_ Signature timestamp nonce. Why do callbacks not have these parameters corpId:ww397c1fff12c90831

回答:

企业微信运营专员-千夜:

您好,没太明白问题,一般是只有验证url有效性的时候,我们才会在url后面带上这个echostr参数,url验证出成功之后,后续是不会再推送echostr参数了,post的话这里的数据是在body上的,不是在url上的

Jerry:

接收到的事件需要消息解密才能获取到真正数据。

消息解密参考:https://open.work.weixin.qq.com/api/doc/90000/90139/90968

星辰:关键是回调接口参数没有 PostData / echostr
Jerry:echostr是验证url有效性接口才会有值。
postdata是接收事件消息时返回的。
星辰:感谢您的答复。我理解是:应该有一个数据加密串msg_encrypt这种,进行解密得到需要的数据。但是目前回调只有msg_signature timestamp nonce这三个参数。
星辰:

mark

-EOF-

AI助手支持GPT4.0