|
@@ -962,16 +962,16 @@ func (s *subscribePush) SetRead(newUserId, id int64, userId, entUserId, entId st
|
|
return nil
|
|
return nil
|
|
}
|
|
}
|
|
|
|
|
|
-// 获取用户信息
|
|
|
|
-func (s *subscribePush) UserInfo(userId string) (*map[string]interface{}, int64) {
|
|
|
|
- user, ok := IC.Mgo.FindById("user", userId, `{"s_m_openid":1,"a_m_openid":1,"s_phone":1,"a_mergeorder":1,"o_jy":1,"l_firstpushtime":1,"i_vip_status":1,"l_vip_endtime":1,"o_vipjy":1,"i_member_status":1,"o_member_jy":1}`)
|
|
|
|
|
|
+// UserInfo 获取用户信息
|
|
|
|
+func (s *subscribePush) UserInfo(baseUserId int64) (*map[string]interface{}, int64) {
|
|
|
|
+ user, ok := IC.Mgo.FindOneByField("user", map[string]interface{}{"base_user_id": baseUserId}, `{"s_m_openid":1,"a_m_openid":1,"s_phone":1,"a_mergeorder":1,"o_jy":1,"l_firstpushtime":1,"i_vip_status":1,"l_vip_endtime":1,"o_vipjy":1,"i_member_status":1,"o_member_jy":1}`)
|
|
if !ok || user == nil {
|
|
if !ok || user == nil {
|
|
return nil, 0
|
|
return nil, 0
|
|
}
|
|
}
|
|
return user, common.Int64All((*user)["l_firstpushtime"])
|
|
return user, common.Int64All((*user)["l_firstpushtime"])
|
|
}
|
|
}
|
|
|
|
|
|
-// 是否有订阅词
|
|
|
|
|
|
+// GetKeySet 是否有订阅词
|
|
func GetKeySet(t string, u *map[string]interface{}, data []string) (bool, []string) {
|
|
func GetKeySet(t string, u *map[string]interface{}, data []string) (bool, []string) {
|
|
var industry_ = []string{}
|
|
var industry_ = []string{}
|
|
if u != nil {
|
|
if u != nil {
|