Code optimization

This commit is contained in:
刘河
2019-03-29 10:41:57 +08:00
parent 4b0aebd6a5
commit cc6d053b6d
32 changed files with 357 additions and 289 deletions

View File

@@ -6,8 +6,10 @@ import (
"github.com/cnlh/nps/lib/common"
"github.com/cnlh/nps/lib/daemon"
"github.com/cnlh/nps/lib/version"
"github.com/cnlh/nps/vender/github.com/astaxie/beego"
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
"os"
"path/filepath"
"strings"
"time"
)
@@ -59,7 +61,7 @@ func main() {
}
} else {
if *configPath == "" {
*configPath = "npc.conf"
*configPath = filepath.Join(beego.AppPath, "conf", "npc.conf")
}
client.StartFromFile(*configPath)
}