更新 .gitignore 文件,新增 merchant.exe 排除项;在 main.go 中添加 MySQL 驱动依赖;删除不再使用的 session.go 文件。
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -3,4 +3,5 @@
|
|||||||
/data/
|
/data/
|
||||||
/logs/
|
/logs/
|
||||||
/lastupdate.tmp
|
/lastupdate.tmp
|
||||||
main.exe
|
main.exe
|
||||||
|
merchant.exe
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
package sys
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/beego/beego/v2/server/web"
|
|
||||||
"merchant/internal/sys/enum"
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
// 开启session
|
|
||||||
web.BConfig.WebConfig.Session.SessionOn = true
|
|
||||||
|
|
||||||
web.BConfig.WebConfig.Session.SessionName = enum.LocalSessionName
|
|
||||||
web.BConfig.WebConfig.Session.SessionGCMaxLifetime = enum.SessionExpireTime
|
|
||||||
web.BConfig.WebConfig.Session.SessionCookieLifeTime = enum.SessionExpireTime
|
|
||||||
web.BConfig.WebConfig.Session.SessionProviderConfig = enum.SessionPath
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user