| | |
| | | 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");
|
| | |
| | | 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;
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * 朋友圈发送视频
|