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({0xc06e675d00?, 0x1a?}) /home/pc/ng-workspace/gtcms/uapi/utility/iploc/iploc.go:67 +0x6a gtcms/utility/iploc.IPLoc({0xc06e675d00, 0xe}) /home/pc/ng-workspace/gtcms/uapi/utility/iploc/iploc.go:84 +0x65 gtcms/internal/logic/utility.(*sUtility).GetIPCity(0xc02606d8c0?, {0x96730c0?, 0xc04b229860?}, {0xc06e675d00?, 0xc02637c720?}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/utility/utility.go:540 +0x2b gtcms/internal/logic/spider.(*sSpider).IsSpider(0x13?, {0x96730c0, 0xc08fb8e890}, 0x0?, {0x2, {0xc02637c730, 0xc}, {0xc06e675d00, 0xe}, {0xc0400556c8, ...}, ...}) /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, 0xc08fb8e890}, {0xc0400556c8, 0x13}, {0xc06e675ce4, 0x11}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/site/site.go:173 +0x237 gtcms/internal/logic/utility.(*sUtility).Router(0x0?, 0xc053849cc0) /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(0xc05492bf1e, 0xc0536b9c20, 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?, {0xc035f89a40?, 0x24?}, 0xc08fb8e8f0?) /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, {0xc035f89a40, 0x24}, 0xc018277880?) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:113 +0x165 gtcms/internal/logic/middleware.(*sMiddleware).Router(0xc00aa82940, 0xc053849cc0) /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({0x1286d40?, 0xc045d7c2b0?}) /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?, 0xc08fb8e890?}, 0x17f37b77007ff07a?) /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, 0xc08fb8e890}, 0x89777b?, 0xc05492c330) /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(0xc05385d180) /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?, 0xc053849cc0) /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?, 0xc08fb8e890?}, 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, 0xc08fb8e890}, 0x965b888?, 0xc05492c6d0) /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(0xc05385d180) /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?, 0xc053849cc0) /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?, 0xc08fb8e890?}, 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, 0xc08fb8e890}, 0x7f1e61dbd6b8?, 0xc05492ca30) /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(0xc05385d180) /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?, 0xc053849cc0) /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?, 0xc07ab3cab0?}, 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, 0xc07ab3cab0}, 0x0?, 0xc05492cdc8) /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(0xc05385d180) /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(0xc053849cc0) /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?, 0xc07ab3c8d0?}, 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, 0xc07ab3c8d0}, 0xc07ab3c8d0?, 0xc05492d990) /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(0xc05385d180) /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?, 0xc0536c6380}, 0xc02848d900) /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?, 0xc0536c6380?}, 0x46b1ce?) /usr/local/go/src/net/http/server.go:2122 +0x2f net/http.serverHandler.ServeHTTP({0xc07ab3c720?}, {0x96718d0, 0xc0536c6380}, 0xc02848d900) /usr/local/go/src/net/http/server.go:2936 +0x316 net/http.(*conn).serve(0xc053860510, {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