1
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user