|
@@ -147,21 +147,21 @@ func GetBigVipUserBaseMsg(session *httpsession.Session, middleground middlegroun
|
|
|
positionType := qutil.Int64All(sessVal["positionType"])
|
|
|
accountId := qutil.Int64All(sessVal["accountId"])
|
|
|
positionId := qutil.Int64All(sessVal["positionId"])
|
|
|
- userPower := BigVipBaseMsg{}
|
|
|
userId := qutil.ObjToString(sessVal["userId"])
|
|
|
+ pccUserId := ""
|
|
|
if positionType == 0 {
|
|
|
- userId = qutil.InterfaceToStr(sessVal["userId"])
|
|
|
+ pccUserId = userId
|
|
|
} else {
|
|
|
- userId = qutil.InterfaceToStr(sessVal["mgoUserId"])
|
|
|
+ pccUserId = qutil.ObjToString(sessVal["mgoUserId"])
|
|
|
}
|
|
|
- log.Println("userId:", userId, "-baseUserId:", baseUserId, "-accountId:", accountId, "-entId:", entId, "-positionType:", positionType, "-baseUserId:", baseUserId, "-accountId:", accountId, "-entId:", entId, "-positionType:", positionType, "-positionId:", positionId)
|
|
|
+ log.Println("userId:", pccUserId, "-baseUserId:", baseUserId, "-accountId:", accountId, "-entId:", entId, "-positionType:", positionType, "-positionId:", positionId)
|
|
|
data := middleground.PowerCheckCenter.Check("10000", userId, baseUserId, accountId, entId, positionType, positionId)
|
|
|
+ userPower := BigVipBaseMsg{}
|
|
|
if data != nil {
|
|
|
power := make(map[int]bool)
|
|
|
for _, v := range data.Member.MemberPowerList {
|
|
|
power[qutil.IntAll(v)] = true
|
|
|
}
|
|
|
- //userId := qutil.ObjToString(session.Get("userId"))
|
|
|
userPower = BigVipBaseMsg{
|
|
|
Status: qutil.IntAll(data.Member.Status), //大会员状态
|
|
|
Used: data.Member.Used, //是否首次使用大会员
|