diff --git a/32-platform/platform/templates/template_loader.go b/32-platform/platform/templates/template_loader.go index b48c564..6d3011b 100644 --- a/32-platform/platform/templates/template_loader.go +++ b/32-platform/platform/templates/template_loader.go @@ -22,9 +22,7 @@ func LoadTemplates(c config.Configuration) (err error) { fmt.Printf("设置模板 getTemplates 函数开始\n") doLoad := func() (t *template.Template) { - fmt.Printf("设置模板 getTemplates doLoad 函数已执行\n") - t = template.New("htmlTemplates") t.Funcs(map[string]interface{}{ "body": func() string { return "" }, @@ -32,6 +30,10 @@ func LoadTemplates(c config.Configuration) (err error) { "handler": func() interface{} { return "" }, }) t, err = t.ParseGlob(path) + if err != nil { + fmt.Printf("获取模板 getTemplates doLoad %v 错误: %v \n", path, err) + return + } return } diff --git a/32-platform/sportsstore/store.db b/32-platform/sportsstore/store.db index 8ba1aa2..c6cbafb 100644 Binary files a/32-platform/sportsstore/store.db and b/32-platform/sportsstore/store.db differ