Explorar el Código

Merge branch 'yb/1.1' of hongze/hongze_yb into master

hsun hace 3 años
padre
commit
aa799efb57
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      controller/response/base.go

+ 3 - 3
controller/response/base.go

@@ -4,7 +4,6 @@ import (
 	"encoding/json"
 	"github.com/gin-gonic/gin"
 	"hongze/hongze_yb/global"
-	"hongze/hongze_yb/utils"
 )
 
 var (
@@ -26,12 +25,13 @@ func result(code int, resultData ResultData, c *gin.Context) {
 	global.LOG.Debug("resultData:", string(jsonByte))
 
 	//测试环境,数据不进行加密
-	if global.CONFIG.Serve.RunMode == "debug" {
+	/*if global.CONFIG.Serve.RunMode == "debug" {
 		c.JSON(code, resultData)
 	} else {
 		responseResult := utils.DesBase64Encrypt(jsonByte)
 		c.JSON(code, responseResult)
-	}
+	}*/
+	c.JSON(code, resultData)
 	c.Abort()
 }