Browse Source

:art: Mobile App switch sync

Daniel 1 year ago
parent
commit
9a9392c5af
1 changed files with 6 additions and 0 deletions
  1. 6 0
      kernel/model/session.go

+ 6 - 0
kernel/model/session.go

@@ -212,6 +212,12 @@ func CheckAuth(c *gin.Context) {
 			c.Next()
 			c.Next()
 			return
 			return
 		}
 		}
+		if strings.HasPrefix(c.Request.RequestURI, "/api/sync/performSync") {
+			if util.ContainerIOS == util.Container || util.ContainerAndroid == util.Container {
+				c.Next()
+				return
+			}
+		}
 	}
 	}
 
 
 	// 通过 Cookie
 	// 通过 Cookie