|
@@ -31,7 +31,7 @@ type switchService struct {
|
|
func (s *switchService) Get(session *httpsession.Session, m MongodbSim) string {
|
|
func (s *switchService) Get(session *httpsession.Session, m MongodbSim) string {
|
|
userId, _ := session.Get("userId").(string)
|
|
userId, _ := session.Get("userId").(string)
|
|
v, _ := session.Get(s.SessionKey).(string)
|
|
v, _ := session.Get(s.SessionKey).(string)
|
|
- log.Println("v:", v)
|
|
|
|
|
|
+ log.Println(s.SessionKey, "---v:", v)
|
|
u, ok := m.FindById("user", userId, `{"i_member_status":1,"i_vip_status":1}`)
|
|
u, ok := m.FindById("user", userId, `{"i_member_status":1,"i_vip_status":1}`)
|
|
if ok && u != nil {
|
|
if ok && u != nil {
|
|
if i_vip_status := util.IntAll((*u)["i_vip_status"]); v == s.Vip && i_vip_status > 0 {
|
|
if i_vip_status := util.IntAll((*u)["i_vip_status"]); v == s.Vip && i_vip_status > 0 {
|