diff --git a/src/main/java/com/zcloud/flow/util/GJSendMessageUtil.java b/src/main/java/com/zcloud/flow/util/GJSendMessageUtil.java index 0137ae24..e92a2127 100644 --- a/src/main/java/com/zcloud/flow/util/GJSendMessageUtil.java +++ b/src/main/java/com/zcloud/flow/util/GJSendMessageUtil.java @@ -72,11 +72,12 @@ public class GJSendMessageUtil { Map _body = JSONObject.parseObject(body, new TypeReference>() {}); Map data = JSONObject.parseObject(_body.get("data"), new TypeReference>() {}); if (!"1".equals(_body.get("code"))) { - throw new RuntimeException(_body.get("message")); + System.out.println(_body.get("message")); + throw new RuntimeException("工匠学院异常,请联系学院老师"); } if (!data.get("syncUserTotal").equals(data.get("syncSuccessCount"))){ String errorMsg = JSONObject.parseArray(data.get("msgList"), Map.class).stream().map(e -> "[" + e.get("msg") + "]").collect(Collectors.joining()); - throw new RuntimeException("错误信息:" + errorMsg); + throw new RuntimeException("工匠学院异常,请联系学院老师。错误信息:" + errorMsg); } System.out.println("=========================="); System.out.println(body);