|
@@ -111,7 +111,7 @@ func ReportViewTimes() (err error) {
|
|
|
|
|
|
title:="用户访问次数',\"你好,上周用户访问次数见附件。"
|
|
|
fmt.Println("start send email")
|
|
|
- sendResult:=utils.SendEmailByHongze(title,"",utils.EmailSendToUsers,savePath)
|
|
|
+ sendResult:=utils.SendEmailByHongze(title,"",utils.EmailSendToHzUsers,savePath)
|
|
|
if sendResult {
|
|
|
os.Remove(savePath)
|
|
|
}
|
|
@@ -249,9 +249,9 @@ func ReportViewDetail() (err error) {
|
|
|
|
|
|
title:="研报阅读统计报表"
|
|
|
fmt.Println("start send email")
|
|
|
- sendResult:=utils.SendEmailByHongze(title,"你好,上周研报阅读统计见附件。",utils.EmailSendToUsers,savePath)
|
|
|
+ sendResult:=utils.SendEmailByHongze(title,"你好,上周研报阅读统计见附件。",utils.EmailSendToHzUsers,savePath)
|
|
|
if sendResult {
|
|
|
-
|
|
|
+ os.Remove(savePath)
|
|
|
}
|
|
|
fmt.Println("send result:",sendResult)
|
|
|
fmt.Println("end send email")
|