From bdbe0a359d5ad7ef792a05a27111764354fb19e9 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sat, 22 Apr 2023 11:50:47 +0800 Subject: [PATCH] update --- internal/logic/api/logic_ext.go | 4 ++++ internal/logic/api/logic_ext_test.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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