From 3932c9f04b2c7e45b28112725cbc214d57e9e089 Mon Sep 17 00:00:00 2001 From: "xie.bx" Date: Sat, 12 Nov 2022 21:36:19 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BE=A4=E6=98=B5?= =?UTF-8?q?=E7=A7=B0=E5=A4=B4=E5=83=8F=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-platform/src/main/resources/application.yml | 2 +- im-ui/src/components/chat/ChatBox.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/im-platform/src/main/resources/application.yml b/im-platform/src/main/resources/application.yml index 7237f51..bb22378 100644 --- a/im-platform/src/main/resources/application.yml +++ b/im-platform/src/main/resources/application.yml @@ -5,7 +5,7 @@ server: spring: datasource: driver-class-name: com.mysql.jdbc.Driver - url: jdbc:mysql://localhost:3306/box-im?useSSL=false&useUnicode=true&characterEncoding=utf-8 + url: jdbc:mysql://localhost:3306/box-im?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true username: root password: root diff --git a/im-ui/src/components/chat/ChatBox.vue b/im-ui/src/components/chat/ChatBox.vue index 477c900..bc5ffde 100644 --- a/im-ui/src/components/chat/ChatBox.vue +++ b/im-ui/src/components/chat/ChatBox.vue @@ -328,8 +328,9 @@ }) }, showName(msgInfo) { - if (this.chat.type == 'Group') { + if (this.chat.type == 'GROUP') { let member = this.groupMembers.find((m) => m.userId == msgInfo.sendId); + console.log(member.aliasName) return member ? member.aliasName : ""; } else { return msgInfo.sendId == this.mine.id ? this.mine.nickName : this.chat.showName @@ -337,7 +338,7 @@ }, headImage(msgInfo) { - if (this.chat.type == 'Group') { + if (this.chat.type == 'GROUP') { let member = this.groupMembers.find((m) => m.userId == msgInfo.sendId); return member ? member.headImage : ""; } else { From 888435c7f80e4fc58c207bbcf0d5121d1f3a9fdd Mon Sep 17 00:00:00 2001 From: "xie.bx" Date: Sat, 12 Nov 2022 21:42:50 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=8F=91=E9=80=81=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bx/implatform/service/impl/GroupMessageServiceImpl.java | 4 +++- .../bx/implatform/service/impl/PrivateMessageServiceImpl.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/im-platform/src/main/java/com/bx/implatform/service/impl/GroupMessageServiceImpl.java b/im-platform/src/main/java/com/bx/implatform/service/impl/GroupMessageServiceImpl.java index 75deeda..3c62332 100644 --- a/im-platform/src/main/java/com/bx/implatform/service/impl/GroupMessageServiceImpl.java +++ b/im-platform/src/main/java/com/bx/implatform/service/impl/GroupMessageServiceImpl.java @@ -16,6 +16,7 @@ import com.bx.implatform.service.IGroupMessageService; import com.bx.implatform.service.IGroupService; import com.bx.implatform.session.SessionContext; import com.bx.implatform.vo.GroupMessageVO; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; @@ -24,7 +25,7 @@ import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.stream.Collectors; - +@Slf4j @Service public class GroupMessageServiceImpl extends ServiceImpl implements IGroupMessageService { @@ -86,6 +87,7 @@ public class GroupMessageServiceImpl extends ServiceImpl implements IPrivateMessageService { @@ -59,6 +60,7 @@ public class PrivateMessageServiceImpl extends ServiceImpl Date: Sat, 12 Nov 2022 22:45:45 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=AC=94=E8=AE=B0=E6=9C=AC=E6=8E=92?= =?UTF-8?q?=E7=89=88=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-ui/src/components/chat/ChatBox.vue | 91 ++++++++++--------- im-ui/src/components/group/AddGroupMember.vue | 4 +- im-ui/src/components/setting/Setting.vue | 2 +- im-ui/src/view/Group.vue | 8 +- im-ui/src/view/Register.vue | 3 +- 5 files changed, 57 insertions(+), 51 deletions(-) diff --git a/im-ui/src/components/chat/ChatBox.vue b/im-ui/src/components/chat/ChatBox.vue index bc5ffde..3ba8913 100644 --- a/im-ui/src/components/chat/ChatBox.vue +++ b/im-ui/src/components/chat/ChatBox.vue @@ -2,51 +2,57 @@ {{title}} - + - - - -
-
    -
  • - - -
  • -
-
-
- -
-
+ + + + +
+
    +
  • + + +
  • +
-
- - - + + +
+
+
+
+ + + +
+
+ + + +
+
+
+
-
- - - + +
+ 发送
-
-
-
-
- -
- 发送 -
-
+ + + + + + - - - - + @@ -228,10 +234,10 @@ this.showVoice = true; }, - closeVoiceBox(){ + closeVoiceBox() { this.showVoice = false; }, - handleSendVoice(data){ + handleSendVoice(data) { let msgInfo = { content: JSON.stringify(data), type: 3 @@ -330,7 +336,6 @@ showName(msgInfo) { if (this.chat.type == 'GROUP') { let member = this.groupMembers.find((m) => m.userId == msgInfo.sendId); - console.log(member.aliasName) return member ? member.aliasName : ""; } else { return msgInfo.sendId == this.mine.id ? this.mine.nickName : this.chat.showName diff --git a/im-ui/src/components/group/AddGroupMember.vue b/im-ui/src/components/group/AddGroupMember.vue index 9ace9ce..8692c31 100644 --- a/im-ui/src/components/group/AddGroupMember.vue +++ b/im-ui/src/components/group/AddGroupMember.vue @@ -5,7 +5,7 @@ - +
@@ -17,7 +17,7 @@
已勾选{{checkCount}}位好友
- +
diff --git a/im-ui/src/components/setting/Setting.vue b/im-ui/src/components/setting/Setting.vue index 4e5fe61..e3e57aa 100644 --- a/im-ui/src/components/setting/Setting.vue +++ b/im-ui/src/components/setting/Setting.vue @@ -1,5 +1,5 @@ @@ -306,7 +306,7 @@ .r-group-info { display: flex; - padding: 20px; + padding: 5px 20px; .r-group-form { flex: 1; @@ -351,7 +351,7 @@ } .r-group-member-list { - padding: 20px; + padding: 5px 20px; display: flex; align-items: center; flex-wrap: wrap; diff --git a/im-ui/src/view/Register.vue b/im-ui/src/view/Register.vue index 00d942f..d1c4907 100644 --- a/im-ui/src/view/Register.vue +++ b/im-ui/src/view/Register.vue @@ -3,7 +3,7 @@
-
欢迎注册成为FLY CHAT用户
+
欢迎注册
@@ -142,6 +142,7 @@ font-size: 22px; font-weight: 600; letter-spacing: 2px; + text-align: center; text-transform: uppercase; }