老师,请问下面的表单通知要怎么设置?现在这样设置会提示发送成功,可实际上钉钉是没有收到信息的?代码需要怎么调整下?
Dim ur As String = "https://oapi.dingtalk.com/topapi/message/corpconversation/asyncsend_v2?access_token={0}"
Dim hc As new HttpClient(Cexp(ur,Functions.Execute("ding_access_token")))
Dim jo As New JObject
jo("agent_id") = "838981235"
jo("userid_list") = "manager3212"
jo("msg") = New JObject
jo("msg")("msgtype") = "oa"
jo("msg")("oa") = New JObject
jo("msg")("oa")("head") = New JObject
jo("msg")("oa")("head")("text") = "应用名"
jo("msg")("oa")("body") = New JObject
jo("msg")("oa")("body")("author") = "发送人"
jo("msg")("oa")("body")("title") = "跟进通知"
jo("msg")("oa")("body")("form") = New JObject()
jo("msg")("oa")("body")("form")("key") = "跟进人:"
jo("msg")("oa")("body")("form")("value") = "张三"
jo("msg")("oa")("body")("form") = New JObject()
jo("msg")("oa")("body")("form")("key") = "跟进时间:"
jo("msg")("oa")("body")("form")("value") = Date.Now
jo("msg")("oa")("body")("form") = New JObject()
jo("msg")("oa")("body")("form")("key") = "跟进状态:"
jo("msg")("oa")("body")("form")("value") = "已跟进"
hc.Content = jo.ToString
jo = JObject.Parse(hc.GetData)
If jo("errcode") = "0" Then
MessageBox.show("消息发送成功!")
Else
MessageBox.show(jo.ToString)
End If