|
@@ -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{}{
|