|
@@ -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
|
|
|
}
|