|
@@ -8,7 +8,6 @@ import (
|
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
|
"app.yhyue.com/moapp/jypkg/identity"
|
|
|
"app.yhyue.com/moapp/jypkg/middleground"
|
|
|
- "app.yhyue.com/moapp/jypkg/public"
|
|
|
"fmt"
|
|
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
"net/http"
|
|
@@ -76,7 +75,7 @@ func JyAppCreateSession(mdb mongodb.MongodbSim, s *httpsession.Session, loginId
|
|
|
}
|
|
|
s.SetMultiple(sessVal)
|
|
|
if isSwitchToBestIdentity && mgd != nil {
|
|
|
- identity.SwitchToBest(qutil.Int64All(sessVal["base_user_id"]), s, mgd, &public.MQFW, true)
|
|
|
+ identity.SwitchToBest(qutil.Int64All(sessVal["base_user_id"]), s, mgd, &mdb, true)
|
|
|
}
|
|
|
//cookie
|
|
|
maxAge := int(time.Hour * 72 / time.Second) //3天,单位秒
|