|
@@ -124,8 +124,8 @@ func (c *BaseAuthController) ServeJSONNoEncryption(encoding ...bool) {
|
|
|
|
|
|
func (c *BaseAuthController) JSONNoEncryption(data interface{}, hasIndent bool, coding bool) error {
|
|
func (c *BaseAuthController) JSONNoEncryption(data interface{}, hasIndent bool, coding bool) error {
|
|
c.Ctx.Output.Header("Content-Type", "application/json; charset=utf-8")
|
|
c.Ctx.Output.Header("Content-Type", "application/json; charset=utf-8")
|
|
- desEncrypt := utils.DesBase64Encrypt([]byte(utils.DesKey), utils.DesKeySalt)
|
|
|
|
- c.Ctx.Output.Header("Dk", string(desEncrypt)) // des3加解密key
|
|
|
|
|
|
+ //desEncrypt := utils.DesBase64Encrypt([]byte(utils.DesKey), utils.DesKeySalt)
|
|
|
|
+ //c.Ctx.Output.Header("Dk", string(desEncrypt)) // des3加解密key
|
|
var content []byte
|
|
var content []byte
|
|
var err error
|
|
var err error
|
|
if hasIndent {
|
|
if hasIndent {
|