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({0xc05473e3e0?, 0x1a?}) /home/pc/ng-workspace/gtcms/uapi/utility/iploc/iploc.go:67 +0x6a gtcms/utility/iploc.IPLoc({0xc05473e3e0, 0xe}) /home/pc/ng-workspace/gtcms/uapi/utility/iploc/iploc.go:84 +0x65 gtcms/internal/logic/utility.(*sUtility).GetIPCity(0xc02606d8c0?, {0x96730c0?, 0xc06a32bdb0?}, {0xc05473e3e0?, 0xc02637c720?}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/utility/utility.go:540 +0x2b gtcms/internal/logic/spider.(*sSpider).IsSpider(0x13?, {0x96730c0, 0xc09857a460}, 0x0?, {0x2, {0xc02637c730, 0xc}, {0xc05473e3e0, 0xe}, {0xc0516531d0, ...}, ...}) /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, 0xc09857a460}, {0xc0516531d0, 0x13}, {0xc05473e3c4, 0xd}) /home/pc/ng-workspace/gtcms/uapi/internal/logic/site/site.go:173 +0x237 gtcms/internal/logic/utility.(*sUtility).Router(0x0?, 0xc026c4cf00) /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(0xc026bf1f1e, 0xc0288b7b80, 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?, {0xc05473e4c0?, 0x20?}, 0xc09857a500?) /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, {0xc05473e4c0, 0x20}, 0xc068938390?) /home/pc/go/pkg/mod/golang.org/x/sync@v0.7.0/singleflight/singleflight.go:113 +0x165 gtcms/internal/logic/middleware.(*sMiddleware).Router(0xc00aa82940, 0xc026c4cf00) /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?, 0x544971?}) /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?, 0xc09857a460?}, 0x17f382cec73b3562?) /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, 0xc09857a460}, 0x89777b?, 0xc026bf2330) /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(0xc0303aa100) /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?, 0xc026c4cf00) /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?, 0xc09857a460?}, 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, 0xc09857a460}, 0x965b888?, 0xc026bf26d0) /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(0xc0303aa100) /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?, 0xc026c4cf00) /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?, 0xc09857a460?}, 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, 0xc09857a460}, 0x7f1e668980b8?, 0xc026bf2a30) /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(0xc0303aa100) /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?, 0xc026c4cf00) /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?, 0xc04ca3b590?}, 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, 0xc04ca3b590}, 0x0?, 0xc026bf2dc8) /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(0xc0303aa100) /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(0xc026c4cf00) /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?, 0xc04ca3b320?}, 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, 0xc04ca3b320}, 0xc04ca3b320?, 0xc026bf3990) /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(0xc0303aa100) /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?, 0xc0263e3880}, 0xc039685b00) /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?, 0xc0263e3880?}, 0x46b1ce?) /usr/local/go/src/net/http/server.go:2122 +0x2f net/http.serverHandler.ServeHTTP({0xc04ca3b170?}, {0x96718d0, 0xc0263e3880}, 0xc039685b00) /usr/local/go/src/net/http/server.go:2936 +0x316 net/http.(*conn).serve(0xc03422bdd0, {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