Roc 2 vuotta sitten
vanhempi
commit
3ac1bb546b
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      controllers/wechat.go
  2. 1 1
      routers/commentsRouter.go

+ 1 - 1
controllers/wechat.go

@@ -64,7 +64,7 @@ func (this *WechatController) SendTemplateMsg() {
 // @Title 强制刷新token
 // @Description 推送模板消息
 // @Success 200 新增成功
-// @router /test/refresh [post]
+// @router /test/refresh [get]
 func (this *WechatController) RefreshWxAccessToken() {
 	br := new(models.BaseResponse).Init()
 

+ 1 - 1
routers/commentsRouter.go

@@ -38,7 +38,7 @@ func init() {
         beego.ControllerComments{
             Method: "RefreshWxAccessToken",
             Router: `/test/refresh`,
-            AllowHTTPMethods: []string{"post"},
+            AllowHTTPMethods: []string{"get"},
             MethodParams: param.Make(),
             Filters: nil,
             Params: nil})