From 212622793ef234d6dcc986abd87bb2c5b243f83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 24 Oct 2022 18:49:15 +0800 Subject: [PATCH] 1 --- controllers/tiktok_store.go | 1 - routers/commentsRouter_controllers.go | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/controllers/tiktok_store.go b/controllers/tiktok_store.go index 3d2ed1235..abdab6d9c 100644 --- a/controllers/tiktok_store.go +++ b/controllers/tiktok_store.go @@ -16,7 +16,6 @@ type TiktokShopController struct { web.Controller } -// TokenMsg 抖音用户授权 func (c *TiktokShopController) TokenMsg() { codeValues := c.Ctx.Request.URL.Query() globals.SugarLogger.Debugf("codeValues=====%s", utils.Format4Output(codeValues, false)) diff --git a/routers/commentsRouter_controllers.go b/routers/commentsRouter_controllers.go index 0e5e02a3e..093d4d4b8 100644 --- a/routers/commentsRouter_controllers.go +++ b/routers/commentsRouter_controllers.go @@ -4105,6 +4105,15 @@ func init() { MethodParams: param.Make(), Filters: nil, Params: nil}) + // 授权回调 + web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:TiktokShopController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:TiktokShopController"], + web.ControllerComments{ + Method: "tokenMsg", + Router: `/tokenMsg`, + AllowHTTPMethods: []string{"get"}, + MethodParams: param.Make(), + Filters: nil, + Params: nil}) //web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:FnController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:FnController"], // web.ControllerComments{ // Method: "FnStore",