This commit is contained in:
孟帅
2023-11-25 18:36:11 +08:00
parent 40117c700d
commit 70e9f966c3
142 changed files with 5407 additions and 2058 deletions

View File

@@ -10,6 +10,7 @@ import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gcmd"
"github.com/gogf/gf/v2/util/gmode"
"hotgo/internal/consts"
"hotgo/internal/library/addons"
"hotgo/internal/library/casbin"
@@ -79,7 +80,9 @@ var (
casbin.InitEnforcer(ctx)
// 初始化生成代码配置
hggen.InIt(ctx)
if !gmode.IsProduct() {
hggen.InIt(ctx)
}
// 启动tcp服务
service.TCPServer().Start(ctx)