From b01481af8794517515a30e5b0f9632e82e632f22 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Fri, 1 Mar 2024 10:36:28 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=81=A2=E5=A4=8D=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/cmd/cmd.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/internal/cmd/cmd.go b/internal/cmd/cmd.go index 34730dd..20caf0e 100644 --- a/internal/cmd/cmd.go +++ b/internal/cmd/cmd.go @@ -7,6 +7,7 @@ import ( "github.com/gogf/gf/v2/os/gcmd" "github.com/gogf/gf/v2/os/glog" "github.com/gogf/gf/v2/os/gres" + "kes-cron/internal/boot" "kes-cron/internal/global/g_consts" "kes-cron/internal/global/g_structs" "kes-cron/utility/cron_utils" @@ -31,6 +32,7 @@ var ( return nil }, } + Main = gcmd.Command{ Name: "main", Usage: "main", @@ -84,11 +86,11 @@ var ( glog.Notice(ctx, "当前后端地址: ", g_consts.BackendBaseUrl()) // 初始化 - //if err := boot.Boot(serverInitData); err != nil { - // glog.Fatal(ctx, "初始化任务失败: ", err) - // time.Sleep(5 * time.Second) - // return err - //} + if err := boot.Boot(serverInitData); err != nil { + glog.Fatal(ctx, "初始化任务失败: ", err) + time.Sleep(5 * time.Second) + return err + } // 启动服务 s := g.Server()