@@ -160,6 +160,8 @@ func (c *BaseAuthController) JSON(data interface{}, hasIndent bool, coding bool)
}
// 数据加密
- content = utils.DesBase64Encrypt(content)
+ if utils.RunMode == "release" {
+ content = utils.DesBase64Encrypt(content)
+ }
return c.Ctx.Output.Body(content)
@@ -141,6 +141,8 @@ func (c *BaseCommonController) JSON(data interface{}, hasIndent bool, coding boo
@@ -130,6 +130,8 @@ func (c *BaseNotAuthController) JSON(data interface{}, hasIndent bool, coding bo
@@ -144,6 +144,8 @@ func (c *BasePcNotAuthController) JSON(data interface{}, hasIndent bool, coding