wangchuanjin 3 年之前
父节点
当前提交
84d5916d31

+ 1 - 0
src/jfw/modules/app/src/main.go

@@ -45,6 +45,7 @@ func main() {
 func initXweb() {
 	//开启redissession
 	httpsession.IsRedisSessionStore = true
+	httpsession.RedisNotLoginKey = "userId"
 	if redisSessionLockSize := util.IntAll(Sysconfig["redisSessionLockSize"]); redisSessionLockSize > 0 {
 		httpsession.RedisSessionLockSize = redisSessionLockSize
 	}

+ 3 - 1
src/jfw/modules/bigmember/src/a/init.go

@@ -1,14 +1,16 @@
 package a
 
 import (
+	"time"
+
 	"github.com/go-xweb/httpsession"
 	"github.com/go-xweb/xweb"
-	"time"
 )
 
 func init() {
 	//开启redissession
 	httpsession.IsRedisSessionStore = true
+	httpsession.RedisNotLoginKey = "userId"
 	xweb.Config.Profiler = true
 	xweb.RootApp().BasePath = "/bigmember"
 	xweb.RootApp().AppConfig.StaticFileVersion = false

+ 1 - 0
src/jfw/modules/publicapply/src/a/init.go

@@ -10,6 +10,7 @@ import (
 func init() {
 	//开启redissession
 	httpsession.IsRedisSessionStore = true
+	httpsession.RedisNotLoginKey = "userId"
 	xweb.Config.Profiler = true
 	xweb.RootApp().BasePath = "/publicapply"
 	xweb.RootApp().AppConfig.StaticFileVersion = false

+ 1 - 0
src/jfw/modules/subscribepay/src/a/init.go

@@ -13,6 +13,7 @@ import (
 func init() {
 	//开启redissession
 	httpsession.IsRedisSessionStore = true
+	httpsession.RedisNotLoginKey = "userId"
 	xweb.Config.Profiler = true
 	//xweb.RootApp().BasePath = "/subscribepay"
 	xweb.RootApp().AppConfig.StaticFileVersion = false