Browse Source

Merge branch 'dev/1.6.7_fu' of moapp/jyMarketing into feature/v1.6.7

fuwencai 1 year ago
parent
commit
5af5025a4b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      service/activityService.go

+ 3 - 1
service/activityService.go

@@ -1029,13 +1029,15 @@ func UserGroupingHandle(userRange int64, userId, userGroupId string, startTime,
 		}
 		}
 		// 获取用户身份
 		// 获取用户身份
 		uaMap := findAttributesMap(userId)
 		uaMap := findAttributesMap(userId)
-		// 判断用户身份是否匹配
+		// 判断用户身份是否匹配  匹配上一个就行
 		groupList := strings.Split(userGroupId, ",")
 		groupList := strings.Split(userGroupId, ",")
 		for i := 0; i < len(groupList); i++ {
 		for i := 0; i < len(groupList); i++ {
 			if uaMap[groupList[i]] {
 			if uaMap[groupList[i]] {
 				return true
 				return true
 			}
 			}
 		}
 		}
+		// 活动属于后台分组 但是都没有匹配上
+		return false
 	}
 	}
 	return true
 	return true
 }
 }