Skip to content

Commit f367c41

Browse files
authored
Merge pull request #415 from qiniu/fix/zone
remove seoul zone
2 parents e69ce85 + 7445ba8 commit f367c41

File tree

4 files changed

+1
-25
lines changed

4 files changed

+1
-25
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* 对象存储,新增请求中间件逻辑,方便拓展请求逻辑
55
* 对象存储,新增备用 UC 域名用于查询区域域名
66
* 对象存储,修复分片上传初始化失败无法快速失败
7+
* 对象存储,移除首尔区域
78

89
## 7.9.0 (2023-03-31)
910
* 对象存储,修复无法对 key 为空字符串的对象进行操作

src/Qiniu/Region.php

-14
Original file line numberDiff line numberDiff line change
@@ -156,20 +156,6 @@ public static function regionSingapore()
156156
return $regionSingapore;
157157
}
158158

159-
//首尔
160-
public static function regionSeoul()
161-
{
162-
//首尔
163-
return new Region(
164-
array('up-ap-northeast-1.qiniup.com'),
165-
array('upload-ap-northeast-1.qiniup.com'),
166-
"rs-ap-northeast-1.qiniuapi.com",
167-
"rsf-ap-northeast-1.qiniuapi.com",
168-
"api-ap-northeast-1.qiniuapi.com",
169-
"iovip-ap-northeast-1.qiniuio.com"
170-
);
171-
}
172-
173159
/*
174160
* GET /v4/query?ak=<ak>&bucket=<bucket>
175161
**/

src/Qiniu/Zone.php

-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ public static function zoneNa0()
3535
return parent::regionNorthAmerica();
3636
}
3737

38-
public static function zoneApNortheast1()
39-
{
40-
return parent::regionSeoul();
41-
}
42-
4338
public static function qvmZonez0()
4439
{
4540
return parent::qvmRegionHuadong();

tests/Qiniu/Tests/ZoneTest.php

-6
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ public function testZoneAs0()
122122
$this->assertContains('upload-as0.qiniup.com', $zone->cdnUpHosts);
123123
}
124124

125-
public function testZoneApNortheast1()
126-
{
127-
$zone = Zone::zoneApNortheast1();
128-
$this->assertContains('upload-ap-northeast-1.qiniup.com', $zone->cdnUpHosts);
129-
}
130-
131125
public function testQvmZonez0()
132126
{
133127
$zone = Zone::qvmZonez0();

0 commit comments

Comments
 (0)