Browse Source

每个规则只执行一次

xiziwen 4 months ago
parent
commit
a762577424
2 changed files with 2 additions and 0 deletions
  1. 1 0
      services/pcsg/fix.go
  2. 1 0
      services/pcsg/mail.go

+ 1 - 0
services/pcsg/fix.go

@@ -164,6 +164,7 @@ func FixHistory() {
 				}
 				fmt.Println(reportInfo.Title, "更新成功")
 			}
+			break
 		}
 		if strings.Contains(reportInfo.Title, "[PCI ANALYTICS CLOUD PLATFORM(00) Fwd] - ") {
 			reportInfo.Title = strings.Replace(reportInfo.Title, "[PCI ANALYTICS CLOUD PLATFORM(00) Fwd] - ", "", -1)

+ 1 - 0
services/pcsg/mail.go

@@ -267,6 +267,7 @@ func handleMailMessage(emailMessage mail.MailMessage) (err error) {
 			} else {
 				reportInfo.SysUserName = v.Author
 			}
+			break
 		}
 	}