exception recovered: runtime error: invalid memory address or nil pointer dereference runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x65 golang.org/x/sync/singleflight.newPanicError({0x1330520?, 0xa093020}) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:44 +0x2c golang.org/x/sync/singleflight.(*Group).doCall.func2.1() /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:193 +0x3b panic({0x1330520, 0xa093020}) /usr/local/go/src/runtime/panic.go:884 +0x213 github.com/ip2location/ip2location-go/v9.(*DB).query(_, {_, _}, _) /home/pc/go/pkg/mod/github.com/ip2location/ip2location-go/v9@v9.7.0/ip2location.go:919 +0xbb github.com/ip2location/ip2location-go/v9.(*DB).Get_all(...) /home/pc/go/pkg/mod/github.com/ip2location/ip2location-go/v9@v9.7.0/ip2location.go:786 gtcms/utility/iploc.IPv4Loc({0xc089f22fa0?, 0x1a?}) /home/pc/ng-workspace/gtcms/uapi/utility/iploc/iploc.go:67 +0x6a gtcms/utility/iploc.IPLoc({0xc089f22fa0, 0xe}) /home/pc/ng-workspace/gtcms/uapi/utility/iploc/iploc.go:84 +0x65 gtcms/internal/logic/utility.(*sUtility).GetIPCity(0xc02606d8c0?, {0x96730c0?, 0xc03917fae0?}, {0xc089f22fa0?, 0xc02637c720?}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/utility/utility.go:540 +0x2b gtcms/internal/logic/spider.(*sSpider).IsSpider(0x13?, {0x96730c0, 0xc02f404730}, 0x0?, {0x2, {0xc02637c730, 0xc}, {0xc089f22fa0, 0xe}, {0xc06a2697d0, ...}, ...}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/spider/spider.go:231 +0x148 gtcms/internal/logic/site.(*sSite).GetSiteByDomainName.func1() /home/pc/ng-workspace/gtcms/uapi/internal/logic/site/site.go:137 +0x391 gtcms/internal/logic/site.(*sSite).GetSiteByDomainName(0xc000bf69c0, {0x96730c0, 0xc02f404730}, {0xc06a2697d0, 0x13}, {0xc04a777b64, 0x15}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/site/site.go:173 +0x237 gtcms/internal/logic/utility.(*sUtility).Router(0x0?, 0xc01ee917c0) /home/pc/ng-workspace/gtcms/uapi/internal/logic/utility/utility.go:138 +0x229 gtcms/internal/logic/middleware.(*sMiddleware).Router.func1() /home/pc/ng-workspace/gtcms/uapi/internal/logic/middleware/middleware.go:82 +0x34 golang.org/x/sync/singleflight.(*Group).doCall.func2(0xc01e9c5f1e, 0xc031743540, 0x7f1e8fcd0f18?) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:198 +0x6f golang.org/x/sync/singleflight.(*Group).doCall(0x13161a0?, 0xc02cef5b00?, {0xc04a777e60?, 0x28?}, 0xc02f4047a0?) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:200 +0xa5 golang.org/x/sync/singleflight.(*Group).Do(0xc00aa82940, {0xc04a777e60, 0x28}, 0xc007da1fc0?) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:113 +0x165 gtcms/internal/logic/middleware.(*sMiddleware).Router(0xc00aa82940, 0xc01ee917c0) /home/pc/ng-workspace/gtcms/uapi/internal/logic/middleware/middleware.go:81 +0x3a9 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1() /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:55 +0x25 github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0x0?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_func.go:61 +0x3e github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1({0x66676f672f6d6f63?, 0x764032762f66672f?}) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:54 +0xaa github.com/gogf/gf/v2/util/gutil.Try({0x96730c0?, 0xc02f404730?}, 0x17f382b3cfb6f5bd?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:36 +0x71 github.com/gogf/gf/v2/util/gutil.TryCatch({0x96730c0, 0xc02f404730}, 0x89777b?, 0xc01e9c6330) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:49 +0x39 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next(0xc076ff4120) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:49 +0x154 gtcms/internal/logic/middleware.(*sMiddleware).HandlerResponse(0x0?, 0xc01ee917c0) /home/pc/ng-workspace/gtcms/uapi/internal/logic/middleware/middleware.go:194 +0x3a github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1() /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:55 +0x25 github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0x0?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_func.go:61 +0x3e github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1({0x34?, 0x151447c?}) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:54 +0xaa github.com/gogf/gf/v2/util/gutil.Try({0x96730c0?, 0xc02f404730?}, 0x1506cea?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:36 +0x71 github.com/gogf/gf/v2/util/gutil.TryCatch({0x96730c0, 0xc02f404730}, 0x965b888?, 0xc01e9c66d0) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:49 +0x39 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next(0xc076ff4120) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:49 +0x154 gtcms/internal/logic/middleware.(*sMiddleware).SetCORSOptions(0x0?, 0xc01ee917c0) /home/pc/ng-workspace/gtcms/uapi/internal/logic/middleware/middleware.go:253 +0x90 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.1() /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:55 +0x25 github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0x40474c?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_func.go:61 +0x3e github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1({0x0?, 0x0?}) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:54 +0xaa github.com/gogf/gf/v2/util/gutil.Try({0x96730c0?, 0xc02f404730?}, 0x40dc0a?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:36 +0x71 github.com/gogf/gf/v2/util/gutil.TryCatch({0x96730c0, 0xc02f404730}, 0x7f1e664eae68?, 0xc01e9c6a30) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:49 +0x39 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next(0xc076ff4120) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:49 +0x154 gtcms/internal/logic/middleware.(*sMiddleware).NeverDoneCtx(0x40dfe7?, 0xc01ee917c0) /home/pc/ng-workspace/gtcms/uapi/internal/logic/middleware/middleware.go:119 +0x15a github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.5() /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:96 +0x2f github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0x571894?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_func.go:61 +0x3e github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1({0xc00032dfb0?, 0x2a?}) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:95 +0x328 github.com/gogf/gf/v2/util/gutil.Try({0x9672ec8?, 0xc04e02b530?}, 0x14b9f6a?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:36 +0x71 github.com/gogf/gf/v2/util/gutil.TryCatch({0x9672ec8, 0xc04e02b530}, 0x0?, 0xc01e9c6dc8) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:49 +0x39 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next(0xc076ff4120) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:49 +0x154 github.com/gogf/gf/v2/net/ghttp.internalMiddlewareServerTracing(0xc01ee917c0) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_middleware_tracing.go:79 +0x965 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.5() /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:96 +0x2f github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0x571894?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_func.go:61 +0x3e github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1({0x34630b8a000?, 0xc0447e7d00?}) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:95 +0x328 github.com/gogf/gf/v2/util/gutil.Try({0x9672ec8?, 0xc04e02b380?}, 0x3?) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:36 +0x71 github.com/gogf/gf/v2/util/gutil.TryCatch({0x9672ec8, 0xc04e02b380}, 0xc04e02b380?, 0xc01e9c7990) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/util/gutil/gutil_try_catch.go:49 +0x39 github.com/gogf/gf/v2/net/ghttp.(*middleware).Next(0xc076ff4120) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_request_middleware.go:49 +0x154 github.com/gogf/gf/v2/net/ghttp.(*Server).ServeHTTP(0xc045351c00, {0x96718d0?, 0xc01eedc540}, 0xc040597400) /home/pc/go/pkg/mod/github.com/gogf/gf/v2@v2.7.1/net/ghttp/ghttp_server_handler.go:88 +0x425 net/http.HandlerFunc.ServeHTTP(0x0?, {0x96718d0?, 0xc01eedc540?}, 0x46b1ce?) /usr/local/go/src/net/http/server.go:2122 +0x2f net/http.serverHandler.ServeHTTP({0xc04e02b230?}, {0x96718d0, 0xc01eedc540}, 0xc040597400) /usr/local/go/src/net/http/server.go:2936 +0x316 net/http.(*conn).serve(0xc047d33050, {0x9672ec8, 0xc02db43650}) /usr/local/go/src/net/http/server.go:1995 +0x612 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:3089 +0x5ed