feat: 加入对直接访问https api的支持

This commit is contained in:
Mmx233
2022-03-01 23:24:57 +08:00
parent 7867a99f3b
commit d0f9ea488c
9 changed files with 43 additions and 17 deletions

10
main.go
View File

@@ -7,8 +7,12 @@ import (
)
func main() {
util.Log.Demo = global.Config.Settings.Basic.DemoMode
util.Log.OutPut = true
util.Log.Init(
global.Config.Settings.Debug.Enable,
global.Config.Settings.Debug.WriteLog,
true,
global.Config.Settings.Debug.LogPath,
)
defer util.Log.CatchRecover()
if global.Flags.RunningDaemon {
@@ -22,7 +26,7 @@ func main() {
if global.Config.Settings.Basic.Interfaces == "" { //单网卡
if err := controllers.Login(true, global.Config.Settings.Basic.SkipNetCheck, nil); err != nil {
util.Log.Println("运行出错,状态异常")
if global.Config.Settings.Basic.DemoMode {
if global.Config.Settings.Debug.Enable {
util.Log.Fatalln(err)
} else {
util.Log.Println(err)