修改tpl的参数传入问题
This commit is contained in:
@@ -28,7 +28,7 @@ func RedirectHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
|
||||
resp := l.Redirect(&req, userinfo)
|
||||
|
||||
if !basic.AfterLogic(w, r, resp, rl) {
|
||||
if !basic.AfterLogic(w, r, rl) {
|
||||
basic.NormalAfterLogic(w, r, resp)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
||||
[]rest.Route{
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/api/redirect",
|
||||
Path: "/api/assistant/redirect",
|
||||
Handler: RedirectHandler(serverCtx),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user