add jwt / complete the rotation verification

This commit is contained in:
landaiqing
2024-08-12 22:05:59 +08:00
parent 54f6256c00
commit 48c5aeb0f4
31 changed files with 1702 additions and 44 deletions

View File

@@ -18,7 +18,7 @@ func I18n() gin.HandlerFunc {
}),
ginI18n.WithGetLngHandle(
func(context *gin.Context, defaultLng string) string {
lang := context.Query("lang")
lang := context.GetHeader("Accept-Language")
if lang == "" {
return defaultLng
}