diff --git a/internal/logic/api/logic_ext_test.go b/internal/logic/api/logic_ext_test.go index d096959..dcd0fa7 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` = 192914").First(&msg).Error; err != nil { + if err := db.DB.Table("message_000").Where("`id` = 10912").First(&msg).Error; err != nil { if err == gorm.ErrRecordNotFound { fmt.Println(err) return @@ -93,7 +93,7 @@ func TestLogicExtServer_protoUnmarshal(t *testing.T) { } var temp pb.Command - var temp1 pb.AddGroupMembersPush + var temp1 pb.UpdateGroupPush err := proto.Unmarshal(msg.Content, &temp) if err != nil { fmt.Println(err) diff --git a/internal/logic/app/group_app.go b/internal/logic/app/group_app.go index 02be240..c5e1a03 100644 --- a/internal/logic/app/group_app.go +++ b/internal/logic/app/group_app.go @@ -47,7 +47,7 @@ func (*groupApp) GetGroup(ctx context.Context, groupId int64) (*pb.Group, error) if err != nil { return nil, err } - if !strings.Contains(group.Name, "官方") && masterId == "68823769" { + if !strings.Contains(group.Name, "官方") && !strings.Contains(group.Name, "运营中心") && masterId == "68823769" { for _, member := range group.Members { if member.UserId == userId && member.MemberType != int(pb.MemberType_GMT_ADMIN) { group.Name = "我的推荐人群" diff --git a/pkg/urlwhitelist/urlwhitelist.go b/pkg/urlwhitelist/urlwhitelist.go index 68b0c73..4ef3d91 100644 --- a/pkg/urlwhitelist/urlwhitelist.go +++ b/pkg/urlwhitelist/urlwhitelist.go @@ -19,4 +19,5 @@ var Logic = map[string]int{ "/pb.LogicExt/UpdateGroup": 8, "/pb.LogicExt/CreateGroup": 9, "/pb.LogicExt/SetGroupRemoveBannedMembers": 10, + "/pb.LogicExt/SendRedPacket": 11, }