fix: 完善代码

This commit is contained in:
tangtanglove
2023-04-12 19:22:13 +08:00
parent 4392f11713
commit d63ec4e85f

View File

@@ -22,8 +22,8 @@ const (
// Version of current package // Version of current package
Version = "1.2.10" Version = "1.2.10"
// 静态文件URL // Path of current package
RespositoryURL = "https://github.com/quarkcms/quark-go/tree/1.2/website/" PkgName = "github.com/quarkcms/quark-go"
) )
type Engine struct { type Engine struct {
@@ -114,7 +114,7 @@ func New(config *Config) *Engine {
// 下载静态文件 // 下载静态文件
_, err := os.Stat(config.StaticPath + "/install.lock") _, err := os.Stat(config.StaticPath + "/install.lock")
if os.IsNotExist(err) { if os.IsNotExist(err) {
err := gopkg.New("github.com/quarkcms/quark-go", Version).Save("website", config.StaticPath) err := gopkg.New(PkgName, Version).Save("website", config.StaticPath)
if err == nil { if err == nil {
// 创建锁定文件 // 创建锁定文件
file, _ := os.Create(config.StaticPath + "/install.lock") file, _ := os.Create(config.StaticPath + "/install.lock")