zwxi 10 месяцев назад
Родитель
Сommit
aa7fb0282a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      controllers/base_auth.go

+ 2 - 2
controllers/base_auth.go

@@ -124,8 +124,8 @@ func (c *BaseAuthController) ServeJSONNoEncryption(encoding ...bool) {
 
 func (c *BaseAuthController) JSONNoEncryption(data interface{}, hasIndent bool, coding bool) error {
 	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 err error
 	if hasIndent {