From 58e6775125c810cb67390423d7245ddbbce68b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 28 Sep 2020 10:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=B7=BB=E5=8A=A0=E5=85=A8?= =?UTF-8?q?=E6=96=B0=E5=95=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/commentsRouter_controllers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/commentsRouter_controllers.go b/routers/commentsRouter_controllers.go index 962d9a21c..d2cf9ea4b 100644 --- a/routers/commentsRouter_controllers.go +++ b/routers/commentsRouter_controllers.go @@ -1453,7 +1453,7 @@ func init() { beego.ControllerComments{ Method: "GetMenu", Router: `/GetMenu`, - AllowHTTPMethods: []string{"post"}, + AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Filters: nil, Params: nil}) @@ -1471,7 +1471,7 @@ func init() { beego.ControllerComments{ Method: "GetUserRole", Router: `/GetUserRole`, - AllowHTTPMethods: []string{"put"}, + AllowHTTPMethods: []string{"get"}, MethodParams: param.Make(), Filters: nil, Params: nil})