@@ -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()
@@ -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})