修复文档查看返回BUG

This commit is contained in:
Minho
2018-02-06 11:27:34 +08:00
parent 065570513d
commit 566fc71154
3 changed files with 29 additions and 12 deletions

View File

@@ -85,7 +85,7 @@ func (c *BaseController) JsonResult(errCode int, errMsg string, data ...interfac
}
c.Ctx.ResponseWriter.Header().Set("Content-Type", "application/json; charset=utf-8")
c.Ctx.ResponseWriter.Header().Set("Cache-Control", "no-cache, no-store")
io.WriteString(c.Ctx.ResponseWriter, string(returnJSON))
c.StopRun()