wangchuanjin 2 yıl önce
ebeveyn
işleme
00d8aa3915
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      identity/identity.go

+ 3 - 0
identity/identity.go

@@ -1,6 +1,7 @@
 package identity
 
 import (
+	"log"
 	"strconv"
 
 	. "app.yhyue.com/moapp/jybase/common"
@@ -73,8 +74,10 @@ func SwitchToBest(userId int64, sess *httpsession.Session, mgd *Middleground) bo
 	if list == nil || len(list) == 0 {
 		return false
 	}
+	log.Println("------cccccc----", sess.Get("beforePositionId"))
 	if beforePositionId := Int64All(sess.Get("beforePositionId")); beforePositionId > 0 {
 		for _, v := range list {
+			log.Println("------dddddd----", v.PositionId, beforePositionId)
 			if v.PositionId == beforePositionId {
 				return NewIdentityInfo(v).Switch(sess)
 			}