mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
Compare commits
3 Commits
88478fc042
...
a565339340
Author | SHA1 | Date | |
---|---|---|---|
|
a565339340 | ||
|
3b710fdfdb | ||
|
ddd16affea |
7
CHANGELOG/CHANGELOG-3.8.md
Normal file
7
CHANGELOG/CHANGELOG-3.8.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
## [v3.8.3-patch.4](https://github.com/openimsdk/open-im-server/releases/tag/v3.8.3-patch.4) (2025-03-13)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
* fix: solve unocrrect invite notificationfrom #3213
|
||||||
|
|
||||||
|
**Full Changelog**: [v3.8.3-patch.3...v3.8.3-patch.4](https://github.com/openimsdk/open-im-server/compare/v3.8.3-patch.3...v3.8.3-patch.4)
|
||||||
|
|
4
CHANGELOG/README.md
Normal file
4
CHANGELOG/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# CHANGELOGs
|
||||||
|
|
||||||
|
- [CHANGELOG-3.8.md](./CHANGELOG-3.8.md)
|
||||||
|
|
@ -14,6 +14,7 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/openimsdk/open-im-server/v3/pkg/apistruct"
|
||||||
"github.com/openimsdk/open-im-server/v3/pkg/common/config"
|
"github.com/openimsdk/open-im-server/v3/pkg/common/config"
|
||||||
"github.com/openimsdk/protocol/auth"
|
"github.com/openimsdk/protocol/auth"
|
||||||
"github.com/openimsdk/protocol/constant"
|
"github.com/openimsdk/protocol/constant"
|
||||||
@ -232,12 +233,15 @@ func (st *StressTest) SendMsg(ctx context.Context, userID string) error {
|
|||||||
"content": fmt.Sprintf("index %d. The current time is %s", st.MsgCounter, time.Now().Format("2006-01-02 15:04:05.000")),
|
"content": fmt.Sprintf("index %d. The current time is %s", st.MsgCounter, time.Now().Format("2006-01-02 15:04:05.000")),
|
||||||
}
|
}
|
||||||
|
|
||||||
req := map[string]any{
|
req := &apistruct.SendMsgReq{
|
||||||
"sendID": userID,
|
SendMsg: apistruct.SendMsg{
|
||||||
"groupID": st.DefaultGroupID,
|
SendID: userID,
|
||||||
"contentType": constant.Text,
|
SenderNickname: userID,
|
||||||
"sessionType": constant.ReadGroupChatType,
|
GroupID: st.DefaultGroupID,
|
||||||
"content": contentObj,
|
ContentType: constant.Text,
|
||||||
|
SessionType: constant.ReadGroupChatType,
|
||||||
|
Content: contentObj,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err := st.PostRequest(ctx, ApiAddress+SendMsg, &req)
|
_, err := st.PostRequest(ctx, ApiAddress+SendMsg, &req)
|
||||||
@ -254,15 +258,18 @@ func (st *StressTest) SendMsg(ctx context.Context, userID string) error {
|
|||||||
func (st *StressTest) CreateGroup(ctx context.Context, userID string) (string, error) {
|
func (st *StressTest) CreateGroup(ctx context.Context, userID string) (string, error) {
|
||||||
groupID := fmt.Sprintf("StressTestGroup_%d_%s", st.GroupCounter, time.Now().Format("20060102150405"))
|
groupID := fmt.Sprintf("StressTestGroup_%d_%s", st.GroupCounter, time.Now().Format("20060102150405"))
|
||||||
|
|
||||||
req := map[string]any{
|
groupInfo := &sdkws.GroupInfo{
|
||||||
"memberUserIDs": TestTargetUserList,
|
GroupID: groupID,
|
||||||
"ownerUserID": userID,
|
GroupName: groupID,
|
||||||
"groupInfo": map[string]any{
|
GroupType: constant.WorkingGroup,
|
||||||
"groupID": groupID,
|
|
||||||
"groupName": groupID,
|
|
||||||
"groupType": constant.WorkingGroup,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
req := group.CreateGroupReq{
|
||||||
|
OwnerUserID: userID,
|
||||||
|
MemberUserIDs: TestTargetUserList,
|
||||||
|
GroupInfo: groupInfo,
|
||||||
|
}
|
||||||
|
|
||||||
resp := group.CreateGroupResp{}
|
resp := group.CreateGroupResp{}
|
||||||
|
|
||||||
response, err := st.PostRequest(ctx, ApiAddress+CreateGroup, &req)
|
response, err := st.PostRequest(ctx, ApiAddress+CreateGroup, &req)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user