发送文件消息
(String appId, String toWxid, String fileUrl, String fileName)
| 24 | * 发送文件消息 |
| 25 | */ |
| 26 | public static JSONObject postFile(String appId, String toWxid, String fileUrl, String fileName) { |
| 27 | JSONObject param = new JSONObject(); |
| 28 | param.put("appId", appId); |
| 29 | param.put("toWxid", toWxid); |
| 30 | param.put("fileUrl", fileUrl); |
| 31 | param.put("fileName", fileName); |
| 32 | return OkhttpUtil.postJSON("/message/postFile", param); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * 发送图片消息 |