mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-12-19 19:57:09 +08:00
优化二维码生成
This commit is contained in:
@@ -822,6 +822,9 @@ func (c *DocumentController) QrCode() {
|
||||
c.Abort("500")
|
||||
}
|
||||
c.Ctx.ResponseWriter.Header().Set("Content-Type", "image/png")
|
||||
|
||||
//imgpath := filepath.Join("cache","qrcode",identify + ".png")
|
||||
|
||||
err = png.Encode(c.Ctx.ResponseWriter, code)
|
||||
if err != nil {
|
||||
beego.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user