From 9a9392c5af8fe8df58e80c724444390cdc8d7af1 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 20 Jan 2024 12:09:47 +0800 Subject: [PATCH] :art: Mobile App switch sync --- kernel/model/session.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/model/session.go b/kernel/model/session.go index 1a0f9fbc1..7acd82e6f 100644 --- a/kernel/model/session.go +++ b/kernel/model/session.go @@ -212,6 +212,12 @@ func CheckAuth(c *gin.Context) { c.Next() return } + if strings.HasPrefix(c.Request.RequestURI, "/api/sync/performSync") { + if util.ContainerIOS == util.Container || util.ContainerAndroid == util.Container { + c.Next() + return + } + } } // 通过 Cookie