This commit is contained in:
1
2026-01-06 15:22:20 +00:00
parent f0d9dfe0e8
commit 69a2d9e510
3 changed files with 42 additions and 26 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gcmd"
"github.com/gogf/gf/v2/os/gfile"
"github.com/xiaoqidun/qqwry"
"golang.org/x/time/rate"
)
@@ -28,6 +29,10 @@ var (
if cool.IsRedisMode {
go cool.ListenFunc(ctx)
}
// // 从文件加载IP数据库
if err := qqwry.LoadFile("public/qqwry.ipdb"); err != nil {
panic(err)
}
//go robot()
go reg()
s := g.Server()