Browse Source

删除判断

wangchuanjin 2 years ago
parent
commit
1471a51b4d
2 changed files with 2 additions and 6 deletions
  1. 0 3
      pushfollowproject/match/matcher/match.go
  2. 2 3
      pushfollowproject/public/entity.go

+ 0 - 3
pushfollowproject/match/matcher/match.go

@@ -222,9 +222,6 @@ func (m *FMatchUser) OnceUserBatch(batchIndex int, lastId *string, count *int64)
 		followInfo := m.NewFollowInfo(Mgo, k)
 		if followInfo == nil {
 			continue
-		} else if !followInfo.IsOpenSwitch {
-			logger.Info("开关是关闭状态,过滤掉", k)
-			continue
 		} else if followInfo.MemberStatus > 0 && followInfo.SonAccountStatus == 1 {
 			logger.Info("子账号,过滤掉", k)
 			continue

+ 2 - 3
pushfollowproject/public/entity.go

@@ -6,9 +6,8 @@ import (
 
 type FollowInfo struct {
 	*UserInfo
-	IsOpenSwitch bool      //是否打开开关
-	FollowType   int       //类型 0-免费 1-大会员
-	Follows      []*Follow //关注
+	FollowType int       //类型 0-免费 1-大会员
+	Follows    []*Follow //关注
 }
 
 //