|
@@ -205,6 +205,7 @@ type UserInfo struct {
|
|
IsMainAccount bool //是否是主账号
|
|
IsMainAccount bool //是否是主账号
|
|
SonAccountStatus int //子账号状态 0-禁用 1-启用
|
|
SonAccountStatus int //子账号状态 0-禁用 1-启用
|
|
MemberMainid string //主账号id
|
|
MemberMainid string //主账号id
|
|
|
|
+ SubPushInactive int //活跃状态
|
|
Entniche *Entniche
|
|
Entniche *Entniche
|
|
WxTplMsg *WxTplMsg
|
|
WxTplMsg *WxTplMsg
|
|
SubSet *SubSet
|
|
SubSet *SubSet
|
|
@@ -219,17 +220,18 @@ type UserInfo struct {
|
|
*/
|
|
*/
|
|
func NewUserInfo(temp map[string]interface{}, tp int) *UserInfo {
|
|
func NewUserInfo(temp map[string]interface{}, tp int) *UserInfo {
|
|
ui := &UserInfo{
|
|
ui := &UserInfo{
|
|
- Id: BsonIdToSId(temp["_id"]),
|
|
|
|
- BaseUserId: util.Int64All(temp["base_user_id"]),
|
|
|
|
- S_m_openid: util.ObjToString(temp["s_m_openid"]),
|
|
|
|
- A_m_openid: util.ObjToString(temp["a_m_openid"]),
|
|
|
|
- Phone: GetPhone(temp),
|
|
|
|
- Jpushid: util.ObjToString(temp["s_jpushid"]),
|
|
|
|
- Opushid: util.ObjToString(temp["s_opushid"]),
|
|
|
|
- AppPhoneType: util.ObjToString(temp["s_appponetype"]),
|
|
|
|
- Subscribe: util.IntAllDef(temp["i_ispush"], 1),
|
|
|
|
- VipStatus: util.IntAll(temp["i_vip_status"]),
|
|
|
|
- MemberStatus: util.IntAll(temp["i_member_status"]),
|
|
|
|
|
|
+ Id: BsonIdToSId(temp["_id"]),
|
|
|
|
+ BaseUserId: util.Int64All(temp["base_user_id"]),
|
|
|
|
+ S_m_openid: util.ObjToString(temp["s_m_openid"]),
|
|
|
|
+ A_m_openid: util.ObjToString(temp["a_m_openid"]),
|
|
|
|
+ Phone: GetPhone(temp),
|
|
|
|
+ Jpushid: util.ObjToString(temp["s_jpushid"]),
|
|
|
|
+ Opushid: util.ObjToString(temp["s_opushid"]),
|
|
|
|
+ AppPhoneType: util.ObjToString(temp["s_appponetype"]),
|
|
|
|
+ Subscribe: util.IntAllDef(temp["i_ispush"], 1),
|
|
|
|
+ VipStatus: util.IntAll(temp["i_vip_status"]),
|
|
|
|
+ MemberStatus: util.IntAll(temp["i_member_status"]),
|
|
|
|
+ SubPushInactive: util.IntAll(temp["subpush_inactive"]),
|
|
}
|
|
}
|
|
if ui.MemberStatus > 0 {
|
|
if ui.MemberStatus > 0 {
|
|
ui.IsMainAccount = util.IntAll(temp["i_mainaccount"]) == 1
|
|
ui.IsMainAccount = util.IntAll(temp["i_mainaccount"]) == 1
|