|
@@ -70,7 +70,7 @@ func (a *ExportReq) AllInfoExport() {
|
|
pathArr := export("customer_data_ttzl", tableColumn, exportKey, timeStr)
|
|
pathArr := export("customer_data_ttzl", tableColumn, exportKey, timeStr)
|
|
if len(pathArr) > 0 {
|
|
if len(pathArr) > 0 {
|
|
pathstr := compressFiles(pathArr, timeStr)
|
|
pathstr := compressFiles(pathArr, timeStr)
|
|
- state := sendMail("资讯", a.Mail, pathstr)
|
|
|
|
|
|
+ state := sendMail("标讯", a.Mail, pathstr)
|
|
BiService.Insert("export_record", map[string]interface{}{
|
|
BiService.Insert("export_record", map[string]interface{}{
|
|
"positionId": a.PositionId,
|
|
"positionId": a.PositionId,
|
|
"type": "project",
|
|
"type": "project",
|
|
@@ -158,7 +158,7 @@ func InirWrite(key []interface{}) (*excelize.StreamWriter, *excelize.File) {
|
|
|
|
|
|
// 发送邮箱
|
|
// 发送邮箱
|
|
func sendMail(title, target_mail string, path string) bool {
|
|
func sendMail(title, target_mail string, path string) bool {
|
|
- mailStr := "<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>铁塔全量%s数据导出</title>\n</head>\n<body>\n<div>\n <p>铁塔全量%s数据已导出成功,请查收附件,导出时间:%s,请点击链接下载数据:<a href=\"%s\">%s</a></p>\n </div>\n</body>"
|
|
|
|
|
|
+ mailStr := "<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>铁塔全量%s数据导出</title>\n</head>\n<body>\n<div>\n <p>铁塔全量%s数据已导出成功,导出时间:%s,请点击链接下载数据:<a href=\"%s\">%s</a></p>\n </div>\n</body>"
|
|
html := fmt.Sprintf(mailStr, title, title, time.Now().Format(DateTime), path, path)
|
|
html := fmt.Sprintf(mailStr, title, title, time.Now().Format(DateTime), path, path)
|
|
fool := false
|
|
fool := false
|
|
for k, v := range GmailAuth {
|
|
for k, v := range GmailAuth {
|