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({0xc095d6db60?, 0x1a?}) /home/pc/ng-workspace/gtcms/uapi/utility/iploc/iploc.go:67 +0x6a gtcms/utility/iploc.IPLoc({0xc095d6db60, 0xe}) /home/pc/ng-workspace/gtcms/uapi/utility/iploc/iploc.go:84 +0x65 gtcms/internal/logic/utility.(*sUtility).GetIPCity(0xc02606d8c0?, {0x96730c0?, 0xc01f214af0?}, {0xc095d6db60?, 0xc02637c720?}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/utility/utility.go:540 +0x2b gtcms/internal/logic/spider.(*sSpider).IsSpider(0x13?, {0x96730c0, 0xc03a7c3620}, 0x0?, {0x2, {0xc02637c730, 0xc}, {0xc095d6db60, 0xe}, {0xc081b17848, ...}, ...}) /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, 0xc03a7c3620}, {0xc081b17848, 0x13}, {0xc095d6db44, 0x11}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/site/site.go:173 +0x237 gtcms/internal/logic/utility.(*sUtility).Router(0x0?, 0xc047a23540) /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(0xc0476dbf1e, 0xc0474b43c0, 0x7f1e8fcd0108?) /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?, {0xc0673823f0?, 0x24?}, 0xc03a7c3790?) /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, {0xc0673823f0, 0x24}, 0xc071d428c0?) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:113 +0x165 gtcms/internal/logic/middleware.(*sMiddleware).Router(0xc00aa82940, 0xc047a23540) /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({0x14c8982?, 0xd?}) /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?, 0xc03a7c3620?}, 0x17f3a0794086d887?) /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, 0xc03a7c3620}, 0x89777b?, 0xc0476dc330) /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(0xc01bebcaa0) /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?, 0xc047a23540) /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?, 0xc03a7c3620?}, 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, 0xc03a7c3620}, 0x965b888?, 0xc0476dc6d0) /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(0xc01bebcaa0) /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?, 0xc047a23540) /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?, 0xc03a7c3620?}, 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, 0xc03a7c3620}, 0x7f1e65b9d128?, 0xc0476dca30) /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(0xc01bebcaa0) /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?, 0xc047a23540) /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?, 0xc0766f48a0?}, 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, 0xc0766f48a0}, 0x0?, 0xc0476dcdc8) /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(0xc01bebcaa0) /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(0xc047a23540) /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?, 0xc0766f46f0?}, 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, 0xc0766f46f0}, 0xc0766f46f0?, 0xc0476dd990) /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(0xc01bebcaa0) /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?, 0xc0470050a0}, 0xc07d30f100) /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?, 0xc0470050a0?}, 0x46b1ce?) /usr/local/go/src/net/http/server.go:2122 +0x2f net/http.serverHandler.ServeHTTP({0xc0766f45a0?}, {0x96718d0, 0xc0470050a0}, 0xc07d30f100) /usr/local/go/src/net/http/server.go:2936 +0x316 net/http.(*conn).serve(0xc06e3c4510, {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