切换语言时保存更长时间

This commit is contained in:
刘祥超
2023-12-12 22:28:17 +08:00
parent 038e289057
commit fc6a0e9813

View File

@@ -24,9 +24,10 @@ func (this *SwitchAction) RunPost(params struct{}) {
} }
this.AddCookie(&http.Cookie{ this.AddCookie(&http.Cookie{
Name: "edgelang", Name: "edgelang",
Value: langCode, Value: langCode,
Path: "/", Path: "/",
MaxAge: 86400 * 365,
}) })
this.Success() this.Success()