Prechádzať zdrojové kódy

feat:修改方法逻辑

wangchuanjin 2 rokov pred
rodič
commit
c00fb4d772
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      p/struct.go

+ 1 - 1
p/struct.go

@@ -186,6 +186,7 @@ func NewUserInfo(temp map[string]interface{}, tp int) *UserInfo {
 	}
 	o_pushset, _ := temp["o_pushset"].(map[string]interface{})
 	ui.GetPushSet(o_pushset)
+	ui.PushSetFilter()
 	return ui
 }
 
@@ -239,7 +240,6 @@ func (u *UserInfo) GetPushSet(obj map[string]interface{}) {
 			MailPush: util.IntAll(followEnt["i_mailpush"]),
 		},
 	}
-	u.PushSetFilter()
 	u.PushSet.ResetSubSet()
 }