From a6ee333232dcbba69b83317b7f02d52309f39d69 Mon Sep 17 00:00:00 2001 From: xing Date: Sat, 13 May 2023 18:52:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/theme/wp/wp.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/theme/wp/wp.go b/app/theme/wp/wp.go index c768bea..0d6c807 100644 --- a/app/theme/wp/wp.go +++ b/app/theme/wp/wp.go @@ -250,6 +250,9 @@ func AdditionScript(h *Handle) { return } fn := func(f, name string) { + if f == "" { + return + } ss, err := os.ReadFile(f) if err != nil { logs.Error(err, str.Join("解析", name, "失败"), f)