瀏覽代碼

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

王浩 1 年之前
父節點
當前提交
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 {