|
@@ -162,6 +162,8 @@ func (c *BaseAuthController) JSON(data interface{}, hasIndent bool, coding bool)
|
|
|
|
|
|
if services.CheckEncryption() {
|
|
if services.CheckEncryption() {
|
|
content = utils.DesBase64Encrypt(content)
|
|
content = utils.DesBase64Encrypt(content)
|
|
|
|
+
|
|
|
|
+ content = []byte(`"` + string(content) + `"`)
|
|
}
|
|
}
|
|
return c.Ctx.Output.Body(content)
|
|
return c.Ctx.Output.Body(content)
|
|
}
|
|
}
|