12345678910111213141516171819202122 |
- package services
- import "hongze/hongze_open_api/utils"
- var EncryptionPathMap = map[string]int{
- "/api/report/getReportInfo": 1,
- "/api/report/getReportChapterInfo": 1,
- "/api/report/getReportInfo/v2": 1,
- "/api/report/getReportChapterInfo/v2": 1,
- "/api/report/getTickerData": 1,
- }
- func CheckEncryption(urlPath string) (isEncryption bool) {
- if utils.RunMode == "release" {
- if _, ok := EncryptionPathMap[urlPath]; ok {
- isEncryption = true
- }
- }
- return
- }
|