最好核对一下环境的编码,如果是部署在windows服务器的话最好指定编码格式 如 java -Dfile.encoding=utf-8 ...
订阅消息phrase参数问题https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html phrase字段总是报错,不适用phrase字段就可以成功进行消息推送
2020-04-21 //创建连接 URL url = new URL(wxMssVo.getRequestUrl()); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setDoInput(true); connection.setRequestMethod("POST"); connection.setUseCaches(false); connection.setInstanceFollowRedirects(true); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); connection.setRequestProperty("Content-Type", "utf-8"); connection.connect(); 两个不同的服务器,一个成功,一个报刚刚那个错误,我觉得问题可能出现在编码上面
phrase4哪里有问题?{"thing7":{"value":"科技宿舍 TD4 D412-4"},"thing6":{"value":"入住通知:"},"date3":{"value":"2020-04-16 20:29:35"},"phrase4":{"value":"成功"}} [{"errcode":47003,"errmsg":"argument invalid! hint: [lPdvTa0175shc2] data.phrase4.value invalid"}]!
2020-04-17