以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- json回调 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=186501) |
-- 作者:lxhmax -- 发布时间:2023/5/7 12:47:00 -- json回调 Dim t As DateTime = New DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc) Dim ur As String = "https://restapi.getui.com/v2/xxx/push/single/cid" Dim hc As New HttpClient(Cexp(ur)) hc.C hc.Headers.Add("token", Functions.Execute("获取消息推送token")) Dim jo As New JObject jo("request_id") = CStr(CLng((DateTime.UtcNow - t).TotalMilliseconds())) jo("audience") = "all" Dim pushMessage As New JObject Dim notification As New JObject notification("title") = "通知标题" notification("body") = "通知内容" & Date.Now notification("click_type") = "startapp" pushMessage("notification") = notification jo("push_message") = pushMessage Output.Show(jo.ToString) hc.Content = jo.ToString Dim ret As String = hc.GetData Output.Show( "结果: " & vbcrlf & ret) 老师,当这个回调错误的时候在apifox中会给出具体的回调内容 { "msg": "param is invalid", "code": 20001 } 但是在狐表中的却是下面截图的提示, .NET Framework 版本:4.0.30319.42000 Foxtable 版本:2020.4.10.8 错误所在事件: 详细错误信息: 远程服务器返回错误: (400) 错误的请求。 请问老师狐表中如何才能输出上面那样的具体提示 |
-- 作者:有点蓝 -- 发布时间:2023/5/7 20:50:00 -- 没有办法 |