From 7445ba8f533f5093cb4d50f1c6e7d5cbd99c23e3 Mon Sep 17 00:00:00 2001 From: LiHS Date: Wed, 28 Jun 2023 16:49:32 +0800 Subject: [PATCH] remove seoul zone --- CHANGELOG.md | 1 + src/Qiniu/Region.php | 14 -------------- src/Qiniu/Zone.php | 5 ----- tests/Qiniu/Tests/ZoneTest.php | 6 ------ 4 files changed, 1 insertion(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5998d2fd..7a7ad3c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * 对象存储,新增请求中间件逻辑,方便拓展请求逻辑 * 对象存储,新增备用 UC 域名用于查询区域域名 * 对象存储,修复分片上传初始化失败无法快速失败 +* 对象存储,移除首尔区域 ## 7.9.0 (2023-03-31) * 对象存储,修复无法对 key 为空字符串的对象进行操作 diff --git a/src/Qiniu/Region.php b/src/Qiniu/Region.php index 9f8a4f2c..46237dff 100644 --- a/src/Qiniu/Region.php +++ b/src/Qiniu/Region.php @@ -156,20 +156,6 @@ public static function regionSingapore() return $regionSingapore; } - //首尔 - public static function regionSeoul() - { - //首尔 - return new Region( - array('up-ap-northeast-1.qiniup.com'), - array('upload-ap-northeast-1.qiniup.com'), - "rs-ap-northeast-1.qiniuapi.com", - "rsf-ap-northeast-1.qiniuapi.com", - "api-ap-northeast-1.qiniuapi.com", - "iovip-ap-northeast-1.qiniuio.com" - ); - } - /* * GET /v4/query?ak=&bucket= **/ diff --git a/src/Qiniu/Zone.php b/src/Qiniu/Zone.php index 49595bbb..655dc590 100644 --- a/src/Qiniu/Zone.php +++ b/src/Qiniu/Zone.php @@ -35,11 +35,6 @@ public static function zoneNa0() return parent::regionNorthAmerica(); } - public static function zoneApNortheast1() - { - return parent::regionSeoul(); - } - public static function qvmZonez0() { return parent::qvmRegionHuadong(); diff --git a/tests/Qiniu/Tests/ZoneTest.php b/tests/Qiniu/Tests/ZoneTest.php index a1ae4591..fbab5284 100755 --- a/tests/Qiniu/Tests/ZoneTest.php +++ b/tests/Qiniu/Tests/ZoneTest.php @@ -122,12 +122,6 @@ public function testZoneAs0() $this->assertContains('upload-as0.qiniup.com', $zone->cdnUpHosts); } - public function testZoneApNortheast1() - { - $zone = Zone::zoneApNortheast1(); - $this->assertContains('upload-ap-northeast-1.qiniup.com', $zone->cdnUpHosts); - } - public function testQvmZonez0() { $zone = Zone::qvmZonez0();