Browse Source

update

master
DengBiao 1 year ago
parent
commit
bdbe0a359d
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      internal/logic/api/logic_ext.go
  2. +1
    -1
      internal/logic/api/logic_ext_test.go

+ 4
- 0
internal/logic/api/logic_ext.go View File

@@ -278,5 +278,9 @@ func (*LogicExtServer) DeleteGroupMember(ctx context.Context, in *pb.DeleteGroup
// GetGroupMembers 获取群组成员信息
func (s *LogicExtServer) GetGroupMembers(ctx context.Context, in *pb.GetGroupMembersReq) (*pb.GetGroupMembersResp, error) {
members, err := app.GroupApp.GetMembers(ctx, in.GroupId)
utils.FilePutContents("GetGroupMembers", utils.SerializeStr(map[string]interface{}{
"req": in,
"resp": members,
}))
return &pb.GetGroupMembersResp{Members: members}, err
}

+ 1
- 1
internal/logic/api/logic_ext_test.go View File

@@ -85,7 +85,7 @@ func TestLogicExtServer_SendMessage(t *testing.T) {
func TestLogicExtServer_protoUnmarshal(t *testing.T) {
db.InitMysql(config.MySQL)
var msg model.Message
if err := db.DB.Table("message_000").Where("`id` = 11414").First(&msg).Error; err != nil {
if err := db.DB.Table("message_000").Where("`id` = 194581").First(&msg).Error; err != nil {
if err == gorm.ErrRecordNotFound {
fmt.Println(err)
return


Loading…
Cancel
Save