wangkaiyue 1 жил өмнө
parent
commit
8d13ca1452

+ 2 - 2
internal/service/sendMail.go

@@ -208,9 +208,9 @@ func (ir *invoiceRecord) GetMailHtmlContext() string {
 	g.Dump(ir, strings.Contains(ir.InvoiceVariety, "专用"))
 	g.Dump(ir, strings.Contains(ir.InvoiceVariety, "专用"))
 	switch ir.InvoiceType {
 	switch ir.InvoiceType {
 	case "单位":
 	case "单位":
-		return fmt.Sprintf(emailHtml_header+emailHtml_gs, ir.OrderCode, tType, invoiceContext, fmt.Sprintf("<a href=\"%s\" download class=\"download\">查看发票</a>", ir.Url), tType, ir.CompanyName, ir.TaxpayerIdentnum, ir.Phone, ir.Mail)
+		return fmt.Sprintf(emailHtml_header+emailHtml_gs, ir.OrderCode, tType, fmt.Sprintf("<a href=\"%s\" download class=\"download\">查看发票</a>", ir.Url), invoiceContext, tType, ir.CompanyName, ir.TaxpayerIdentnum, ir.Phone, ir.Mail)
 	case "个人":
 	case "个人":
-		return fmt.Sprintf(emailHtml_header+emailHtml_gr, ir.OrderCode, tType, invoiceContext, fmt.Sprintf("<a href=\"%s\" download class=\"download\">查看发票</a>", ir.Url), tType, ir.Phone, ir.Mail)
+		return fmt.Sprintf(emailHtml_header+emailHtml_gr, ir.OrderCode, tType, fmt.Sprintf("<a href=\"%s\" download class=\"download\">查看发票</a>", ir.Url), invoiceContext, tType, ir.Phone, ir.Mail)
 	}
 	}
 	return ""
 	return ""
 }
 }