Kaynağa Gözat

方法拆分

wangchuanjin 2 yıl önce
ebeveyn
işleme
fb166c66d6
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      p/struct.go

+ 5 - 0
p/struct.go

@@ -224,6 +224,11 @@ func (u *UserInfo) GetPushSet(obj map[string]interface{}) {
 			MailPush: util.IntAll(followEnt["i_mailpush"]),
 		},
 	}
+	u.PushSetFilter()
+}
+
+//解析用户的推送设置
+func (u *UserInfo) PushSetFilter() {
 	if u.Subscribe == 0 || u.S_m_openid == "" {
 		u.PushSet.SubSet.WxPush = -1
 		u.PushSet.WeekReport.WxPush = -1