瀏覽代碼

update

master
DengBiao 1 年之前
父節點
當前提交
99872463b0
共有 3 個檔案被更改,包括 4 行新增3 行删除
  1. +2
    -2
      internal/logic/api/logic_ext_test.go
  2. +1
    -1
      internal/logic/app/group_app.go
  3. +1
    -0
      pkg/urlwhitelist/urlwhitelist.go

+ 2
- 2
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)


+ 1
- 1
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 = "我的推荐人群"


+ 1
- 0
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,
}

Loading…
取消
儲存