Explorar el Código

wip:自测提交

wangkaiyue hace 1 año
padre
commit
348b1f0e0d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      internal/service/sendMail.go

+ 2 - 2
internal/service/sendMail.go

@@ -201,9 +201,9 @@ func (ir *invoiceRecord) GetMailHtmlContext() string {
 	g.Dump(ir, strings.Contains(ir.InvoiceVariety, "专用"))
 	switch ir.InvoiceType {
 	case "单位":
-		return fmt.Sprintf(emailHtml_header+emailHtml_gs, ir.OrderCode, tType, 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), tType, ir.CompanyName, ir.TaxpayerIdentnum, ir.Phone, ir.Mail)
 	case "个人":
-		return fmt.Sprintf(emailHtml_header+emailHtml_gr, ir.OrderCode, tType, 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), tType, ir.Phone, ir.Mail)
 	}
 	return ""
 }