@@ -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)
return c.Ctx.Output.Body(content)
@@ -141,7 +141,7 @@ func (c *BaseCommonController) JSON(data interface{}, hasIndent bool, coding boo
@@ -130,7 +130,7 @@ func (c *BaseNotAuthController) JSON(data interface{}, hasIndent bool, coding bo
@@ -144,7 +144,7 @@ func (c *BasePcNotAuthController) JSON(data interface{}, hasIndent bool, coding
@@ -1,16 +1,13 @@
package services
import (
- "fmt"
+ "hongze/hongze_api/utils"
)
// CheckEncryption 校验需要是否加密
-func CheckEncryption(urlPath string) (ok bool) {
- fmt.Println(urlPath)
- //if urlPath != `/api/report/share/detail` {
- // if utils.RunMode == "release" {
- // ok = true
- // }
- //}
- return true
+func CheckEncryption() (ok bool) {
+ if utils.RunMode == "release" {
+ ok = true
+ }
+ return