ziwen %!s(int64=2) %!d(string=hai) anos
pai
achega
f7a9aeb2ee
Modificáronse 1 ficheiros con 6 adicións e 12 borrados
  1. 6 12
      services/verify.go

+ 6 - 12
services/verify.go

@@ -2,21 +2,15 @@ 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
-		}
-	}
-	if urlPath != `/api/english_report/share/detail` {
-		if utils.RunMode == "release" {
-			ok = true
-		}
-	}
-	return
+	//if urlPath != `/api/report/share/detail` {
+	//	if utils.RunMode == "release" {
+	//		ok = true
+	//	}
+	//}
+	return true
 }