|
@@ -160,7 +160,7 @@ func (c *BaseAuthController) JSON(data interface{}, hasIndent bool, coding bool)
|
|
}
|
|
}
|
|
|
|
|
|
// 数据加密
|
|
// 数据加密
|
|
- if services.CheckEncryption(c.Ctx.Request.URL.Path) {
|
|
|
|
|
|
+ if services.CheckEncryption() {
|
|
content = utils.DesBase64Encrypt(content)
|
|
content = utils.DesBase64Encrypt(content)
|
|
}
|
|
}
|
|
return c.Ctx.Output.Body(content)
|
|
return c.Ctx.Output.Body(content)
|