From 652de4214ebe5efcf3abd30e68c83cb38beb2a23 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期一, 22 六月 2020 16:44:09 +0800 Subject: [PATCH] 云发单-发圈调整 --- fanli/src/main/java/com/yeshi/fanli/util/aitaoker/AitaokerApiUtil.java | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/aitaoker/AitaokerApiUtil.java b/fanli/src/main/java/com/yeshi/fanli/util/aitaoker/AitaokerApiUtil.java index 9a13a0d..ca4f9b8 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/aitaoker/AitaokerApiUtil.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/aitaoker/AitaokerApiUtil.java @@ -411,7 +411,7 @@ map.put("pic_url", picUrl); map.put("content", content); // 璇锋眰缁撴灉 - String result = baseRequest("itaoke.robot.macsend.circle", map); + String result = baseRequest("itaoke.robot.circle.send", map); JSONObject resultJson = JSONObject.fromObject(result); if ("0000".equals(resultJson.optString("status"))) { resultJson = resultJson.optJSONObject("data"); @@ -425,6 +425,26 @@ return null; } + /** + * 鍙戞湅鍙嬪湀 + * @param robotId + * @param content + * @param picUrl 鍥剧墖url锛屽涓鐢�;鍒嗛殧 + * @return + */ + public static String macsendUpload(int robotId, String picUrl) { + Map<String, String> map = new HashMap<>(); + map.put("robot_id", robotId +""); + map.put("pic_url", picUrl); + map.put("type", "2"); + String result = baseRequest("itaoke.robot.circle.upload", map); + JSONObject resultJson = JSONObject.fromObject(result); + if ("0000".equals(resultJson.optString("status"))) { + return resultJson.optString("data"); + } + return null; + } + /** * 鏈嬪弸鍦堝彂閫佽棰� -- Gitblit v1.8.0