From 906b5e8819b878c70f682b00110ac071b682c95d Mon Sep 17 00:00:00 2001 From: "Mr. Lan" Date: Sun, 26 Jul 2020 22:58:53 +0800 Subject: [PATCH] fix bug. --- pkg/notify/send.go | 2 +- {pkg/notify => static}/template/email.html | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename {pkg/notify => static}/template/email.html (100%) diff --git a/pkg/notify/send.go b/pkg/notify/send.go index 699194e..4ed5cd5 100644 --- a/pkg/notify/send.go +++ b/pkg/notify/send.go @@ -35,7 +35,7 @@ func (b *BodyData) ParsingTemplate() (err error) { buf bytes.Buffer ) - tmpl, err := template.ParseFiles("./pkg/notify/template/email.html") + tmpl, err := template.ParseFiles("./static/template/email.html") if err != nil { return } diff --git a/pkg/notify/template/email.html b/static/template/email.html similarity index 100% rename from pkg/notify/template/email.html rename to static/template/email.html