Эх сурвалжийг харах

Merge branch 'dev_v1.0.24_wh' of BaseService/biService into feature/v1.0.24

王浩 1 жил өмнө
parent
commit
fbfb7c5663
1 өөрчлөгдсөн 4 нэмэгдсэн , 1 устгасан
  1. 4 1
      service/acceptance.go

+ 4 - 1
service/acceptance.go

@@ -319,7 +319,10 @@ func WorkMail(gmailAuth []*mail.GmailAuth, personMap map[string]interface{}, pro
 	}
 
 	toCc := strings.Join(mailArr, ",")
-	log.Println(toMail, toCc, title, content)
+	if len(mailArr) > 0 {
+		toMail = fmt.Sprintf("%s|%s", toMail, toCc)
+	}
+	log.Println(toMail, "", title, content)
 	/*toMail = "wanghao@topnet.net.cn"
 	toCc = "wanghao@topnet.net.cn"*/
 	for k, v := range gmailAuth {