|
@@ -1,5 +1,7 @@
|
|
|
package services
|
|
|
|
|
|
+import "hongze/hongze_open_api/utils"
|
|
|
+
|
|
|
// AfterHandlerUrlMap 结束后待处理的url
|
|
|
var EncryptionPathMap = map[string]int{
|
|
|
"/api/report/getReportInfo": 1, //报告详情接口
|
|
@@ -11,10 +13,10 @@ var EncryptionPathMap = map[string]int{
|
|
|
|
|
|
// CheckEncryption 校验需要是否加密
|
|
|
func CheckEncryption(urlPath string) (isEncryption bool) {
|
|
|
- //if utils.RunMode == "release" {
|
|
|
- if _, ok := EncryptionPathMap[urlPath]; ok {
|
|
|
- isEncryption = true
|
|
|
+ if utils.RunMode == "release" {
|
|
|
+ if _, ok := EncryptionPathMap[urlPath]; ok {
|
|
|
+ isEncryption = true
|
|
|
+ }
|
|
|
}
|
|
|
- //}
|
|
|
return
|
|
|
}
|