Browse Source

feat:新增方法

wangchuanjin 1 year ago
parent
commit
90de29e5df
1 changed files with 12 additions and 0 deletions
  1. 12 0
      p/public.go

+ 12 - 0
p/public.go

@@ -657,6 +657,18 @@ func getEntPushSet(mgo *MongodbSim, msl *Mysql, entUserId int, phone string) *ma
 	return &user
 }
 
+//
+func GetEntUserPushset(mgo *MongodbSim, entUserId int) map[string]interface{} {
+	temp, ok := mgo.FindOneByField(Mgo_Ent_User, map[string]interface{}{
+		"i_userid": entUserId,
+	}, `{"o_pushset":1}`)
+	if ok && temp != nil && len(*temp) > 0 {
+		o_pushset, _ := (*temp)["o_pushset"].(map[string]interface{})
+		return o_pushset
+	}
+	return nil
+}
+
 //
 func GetEntUserSubset(mgo *MongodbSim, entUserId, tp int) map[string]interface{} {
 	temp, ok := mgo.FindOneByField("entniche_rule", map[string]interface{}{