|
@@ -61,7 +61,16 @@ func Group(c *gin.Context) {
|
|
|
func V2Group(c *gin.Context) {
|
|
|
vip := c.Query("vip")
|
|
|
group(c, "v.sweeterlife.net", func(node *model.Node) bool {
|
|
|
- return (vip == "true" && node.Vip) || (vip == "false" && !node.Vip)
|
|
|
+ if vip == "" {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if vip == "true" && node.Vip {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if vip == "false" && !node.Vip {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ return false
|
|
|
})
|
|
|
}
|
|
|
|