diff --git a/internal/logic/api/logic_ext.go b/internal/logic/api/logic_ext.go index 909f20c..cddd825 100644 --- a/internal/logic/api/logic_ext.go +++ b/internal/logic/api/logic_ext.go @@ -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 } diff --git a/internal/logic/api/logic_ext_test.go b/internal/logic/api/logic_ext_test.go index fb65854..462ef75 100644 --- a/internal/logic/api/logic_ext_test.go +++ b/internal/logic/api/logic_ext_test.go @@ -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