From 0a05503c7845b1d48332909e56c85ceb31d982f3 Mon Sep 17 00:00:00 2001 From: heavyrian2012 Date: Sat, 23 Mar 2024 11:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E9=A2=91=E9=81=93=E5=92=8C?= =?UTF-8?q?=E6=9C=BA=E5=99=A8=E4=BA=BA=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaoleilu/loServer/action/admin/CreateChatroomAction.java | 4 ---- .../xiaoleilu/loServer/action/admin/CreateRobotAction.java | 4 ---- 2 files changed, 8 deletions(-) diff --git a/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateChatroomAction.java b/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateChatroomAction.java index 8b30f0126..a0cef5d09 100755 --- a/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateChatroomAction.java +++ b/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateChatroomAction.java @@ -48,10 +48,6 @@ public boolean action(Request request, Response response) { inputCreateChatroom.setChatroomId(messagesStore.getShortUUID()); } - if (inputCreateChatroom.getPortrait() == null || inputCreateChatroom.getPortrait().length() == 0) { - inputCreateChatroom.setPortrait("https://avatars.io/gravatar/" + inputCreateChatroom.getChatroomId()); - } - WFCMessage.ChatroomInfo info = inputCreateChatroom.toChatroomInfo(); messagesStore.createChatroom(inputCreateChatroom.getChatroomId(), info); setResponseContent(RestResult.ok(new OutputCreateChatroom(inputCreateChatroom.getChatroomId())), response); diff --git a/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateRobotAction.java b/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateRobotAction.java index 2c1644d52..89a303ab6 100755 --- a/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateRobotAction.java +++ b/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateRobotAction.java @@ -49,10 +49,6 @@ public boolean action(Request request, Response response) { inputCreateRobot.setUserId(messagesStore.getShortUUID()); } - if (inputCreateRobot.getPortrait() == null || inputCreateRobot.getPortrait().length() == 0) { - inputCreateRobot.setPortrait("https://avatars.io/gravatar/" + inputCreateRobot.getUserId()); - } - WFCMessage.User newUser = inputCreateRobot.toUser(); try { messagesStore.addUserInfo(newUser);