|
@@ -67,6 +67,10 @@ func (this *WechatController) SendTemplateMsg() {
|
|
|
// @router /test/refresh [get]
|
|
|
func (this *WechatController) RefreshWxAccessToken() {
|
|
|
br := new(models.BaseResponse).Init()
|
|
|
+ defer func() {
|
|
|
+ this.Data["json"] = br
|
|
|
+ this.ServeJSON()
|
|
|
+ }()
|
|
|
|
|
|
token,err,errMsg:=services.RefreshWxAccessToken()
|
|
|
br.Data = token
|