|
@@ -96,7 +96,6 @@ func Fix() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
func FixHistory() {
|
|
|
list, err := report.GetMailOutsideReport()
|
|
|
if err != nil {
|
|
@@ -120,7 +119,7 @@ func FixHistory() {
|
|
|
ruleMap[v.Rule] = v
|
|
|
}
|
|
|
|
|
|
- classifyAll , e := report.GetClassifyAll()
|
|
|
+ classifyAll, e := report.GetClassifyAll()
|
|
|
if e != nil {
|
|
|
err = e
|
|
|
global.FILE_LOG.Error("获取分类失败:", err)
|
|
@@ -164,5 +163,14 @@ func FixHistory() {
|
|
|
fmt.Println(reportInfo.Title, "更新成功")
|
|
|
}
|
|
|
}
|
|
|
+ if strings.Contains(reportInfo.Title, "[PCI ANALYTICS CLOUD PLATFORM(00) Fwd] - ") {
|
|
|
+ reportInfo.Title = strings.Replace(reportInfo.Title, "[PCI ANALYTICS CLOUD PLATFORM(00) Fwd] - ", "", -1)
|
|
|
+ err = reportInfo.Update([]string{"Title"})
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println("更新失败:", err)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ fmt.Println(reportInfo.Title, "去除前缀成功")
|
|
|
+ }
|
|
|
}
|
|
|
}
|