From 0e13614fe42fa0705d9ba3e1cc00c250206fa7ee Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Fri, 11 Oct 2024 11:56:41 +0800 Subject: [PATCH] fix: jssdk add --- config/minio.yml | 2 +- internal/api/jssdk/stu.go | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/minio.yml b/config/minio.yml index ad1a32a8c..e5cd40a77 100644 --- a/config/minio.yml +++ b/config/minio.yml @@ -9,7 +9,7 @@ sessionToken: # Internal address of the MinIO server internalAddress: localhost:10005 # External address of the MinIO server, accessible from outside. Supports both HTTP and HTTPS using a domain name -externalAddress: http://external_ip:10005 +externalAddress: http://172.16.8.12:10005 # Flag to enable or disable public read access to the bucket publicRead: false diff --git a/internal/api/jssdk/stu.go b/internal/api/jssdk/stu.go index 2f63975b3..d51968f40 100644 --- a/internal/api/jssdk/stu.go +++ b/internal/api/jssdk/stu.go @@ -12,8 +12,11 @@ type ActiveConversationsReq struct { type ConversationMsg struct { Conversation *conversation.Conversation `json:"conversation"` LastMsg *sdkws.MsgData `json:"lastMsg"` - MaxSeq int64 `json:"maxSeq"` - ReadSeq int64 `json:"readSeq"` + User *sdkws.UserInfo + Friend *sdkws.FriendInfo + Group *sdkws.GroupInfo + MaxSeq int64 `json:"maxSeq"` + ReadSeq int64 `json:"readSeq"` } type ConversationsResp struct {