From db47bb04369b0689d6d09fb8318f55291e42a882 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Tue, 13 Jun 2023 15:40:53 +0800 Subject: [PATCH] Update middleHandle.go --- route/middleHandle.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/route/middleHandle.go b/route/middleHandle.go index 7f4ec55..1442553 100755 --- a/route/middleHandle.go +++ b/route/middleHandle.go @@ -102,6 +102,12 @@ func LoggerHandle(c *gin.Context) { c.Set(mycontext.APP_VERSION, appVersion) c.Set(mycontext.URL, reqUri) c.Set(mycontext.METHOD, method) + lang := header.Get(mycontext.LANGUAGE) + c.Set(mycontext.LANGUAGE, lang) + carrier := header.Get(mycontext.CARRIER) + c.Set(mycontext.CARRIER, carrier) + timezone := header.Get(mycontext.TIMEZONE) + c.Set(mycontext.TIMEZONE, timezone) userId, _ := req.GetUserId(c) -- 2.22.0