mirror of
https://github.com/quarkcloudio/quark-go.git
synced 2025-10-27 09:50:29 +08:00
fix: 完善代码
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user