老师,您好:
钉钉注册回调事件,要求返回包含经过加密的字符串“success”的json数据,只有返回了对应的json数据,钉钉才会判断此事件推送成功。
我用如下Code返回了JObject String,返回错误信息,您看是什么原因?谢谢!
Dim st As New Date(1970,1,1,8,0,0)
Dim time_stamp As Long = (Date.Now - st).TotalSeconds()
Dim msg_signature As String
Dim encryptMsg As String
dingCrypt.EncryptMsg("success",timeStamp,nonce,encryptMsg,msg_signature)
Dim ejo As New JObject
ejo("msg_signature") = msg_signature
ejo("timeStamp") = time_stamp
ejo("nonce") = nonce
ejo("encrypt") = encryptMsg
e.WriteString(ejo.ToString)