zhou.xiaoning hace 2 años
padre
commit
4b39d490c5
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      routers/router.go

+ 6 - 6
routers/router.go

@@ -816,14 +816,14 @@ func InitRouter() *gin.Engine {
 
 	// ************************* 腾讯 *************************
 	tencentR := apiR.Group("Tencent")
-	tencentR.Use(token.Auth())
+	tencentR.Use()
 	{
-		tencentR.GET("QueryUsereSignRecords", tencent.QueryUsereSignRecords)
 		tencentR.POST("QianNotice", tencent.QianNotice)
-		tencentR.POST("CreateConsoleLoginUrl", tencent.CreateConsoleLoginUrl)
-		tencentR.POST("CreateFlowByTemplateDirectly", tencent.CreateFlowByTemplateDirectly)
-		tencentR.GET("GetFlowStatus", tencent.GetFlowStatus)
-		tencentR.POST("InitTencentESS", tencent.InitTencentESS)
+		tencentR.Use(token.Auth()).GET("QueryUsereSignRecords", tencent.QueryUsereSignRecords)
+		tencentR.Use(token.Auth()).POST("CreateConsoleLoginUrl", tencent.CreateConsoleLoginUrl)
+		tencentR.Use(token.Auth()).POST("CreateFlowByTemplateDirectly", tencent.CreateFlowByTemplateDirectly)
+		tencentR.Use(token.Auth()).GET("GetFlowStatus", tencent.GetFlowStatus)
+		tencentR.Use(token.Auth()).POST("InitTencentESS", tencent.InitTencentESS)
 	}
 
 	return r