From c4b5f816415b8c39cd41e4c1597895e30039a1d8 Mon Sep 17 00:00:00 2001 From: Ke Chen Date: Wed, 10 Apr 2024 11:24:13 +0800 Subject: [PATCH] feat: set region always to global --- apis/config/config.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/apis/config/config.go b/apis/config/config.go index ffb6359..39d0321 100644 --- a/apis/config/config.go +++ b/apis/config/config.go @@ -20,16 +20,17 @@ func GetConfig(c *fiber.Ctx) error { return err } - var region string - ok, err := IsInChina(GetRealIP(c)) - if err != nil { - return err - } - if ok { - region = "cn" - } else { - region = "global" - } + //var region string + //ok, err := IsInChina(GetRealIP(c)) + //if err != nil { + // return err + //} + //if ok { + // region = "cn" + //} else { + // region = "global" + //} + var region = "global" return c.JSON(Response{ Region: region,