This commit is contained in:
eson
2023-09-04 12:30:24 +08:00
parent 1724a78cd0
commit b01fc28fa9
4 changed files with 49 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package logic
import (
"bytes"
"fusenapi/utils/check"
"fusenapi/utils/fstpl"
"log"
"net/smtp"
"sync"
@@ -21,7 +22,7 @@ var tpls *template.Template
func init() {
var err error
tpls, err = template.ParseGlob("../../../../html_template/*.tpl")
tpls = fstpl.AutoParseTplFiles()
if err != nil {
log.Fatal(err)
}