diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c7a4b4f..37ce7f8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 7.2.6 (2018-05-18) +* 修复rs,rsf在不同机房默认的https域名 + ## 7.2.5 (2018-05-10) * 修复表单上传中多余的参数checkCrc导致的fname错位问题 diff --git a/src/Qiniu/Zone.php b/src/Qiniu/Zone.php index 1a66d39b..caedc264 100644 --- a/src/Qiniu/Zone.php +++ b/src/Qiniu/Zone.php @@ -44,8 +44,8 @@ public static function zone0() $Zone_z0 = new Zone( array("up.qiniup.com", 'up-jjh.qiniup.com', 'up-xs.qiniup.com'), array('upload.qiniup.com', 'upload-jjh.qiniup.com', 'upload-xs.qiniup.com'), - 'rs.qiniu.com', - 'rsf.qiniu.com', + 'rs.qbox.me', + 'rsf.qbox.me', 'api.qiniu.com', 'iovip.qbox.me' ); @@ -58,8 +58,8 @@ public static function zone1() $Zone_z1 = new Zone( array('up-z1.qiniup.com'), array('upload-z1.qiniup.com'), - "rs-z1.qiniu.com", - "rsf-z1.qiniu.com", + "rs-z1.qbox.me", + "rsf-z1.qbox.me", "api-z1.qiniu.com", "iovip-z1.qbox.me" ); @@ -73,8 +73,8 @@ public static function zone2() $Zone_z2 = new Zone( array('up-z2.qiniup.com', 'up-dg.qiniup.com', 'up-fs.qiniup.com'), array('upload-z2.qiniup.com', 'upload-dg.qiniup.com', 'upload-fs.qiniup.com'), - "rs-z2.qiniu.com", - "rsf-z2.qiniu.com", + "rs-z2.qbox.me", + "rsf-z2.qbox.me", "api-z2.qiniu.com", "iovip-z2.qbox.me" ); @@ -88,8 +88,8 @@ public static function zoneNa0() $Zone_na0 = new Zone( array('up-na0.qiniup.com'), array('upload-na0.qiniup.com'), - "rs-na0.qiniu.com", - "rsf-na0.qiniu.com", + "rs-na0.qbox.me", + "rsf-na0.qbox.me", "api-na0.qiniu.com", "iovip-na0.qbox.me" ); @@ -103,8 +103,8 @@ public static function zoneAs0() $Zone_as0 = new Zone( array('up-as0.qiniup.com'), array('upload-as0.qiniup.com'), - "rs-as0.qiniu.com", - "rsf-as0.qiniu.com", + "rs-as0.qbox.me", + "rsf-as0.qbox.me", "api-as0.qiniu.com", "iovip-as0.qbox.me" ); @@ -145,24 +145,24 @@ public static function queryZone($ak, $bucket) //set specific hosts if (strstr($zone->iovipHost, "z1") !== false) { - $zone->rsHost = "rs-z1.qiniu.com"; - $zone->rsfHost = "rsf-z1.qiniu.com"; + $zone->rsHost = "rs-z1.qbox.me"; + $zone->rsfHost = "rsf-z1.qbox.me"; $zone->apiHost = "api-z1.qiniu.com"; } elseif (strstr($zone->iovipHost, "z2") !== false) { - $zone->rsHost = "rs-z2.qiniu.com"; - $zone->rsfHost = "rsf-z2.qiniu.com"; + $zone->rsHost = "rs-z2.qbox.me"; + $zone->rsfHost = "rsf-z2.qbox.me"; $zone->apiHost = "api-z2.qiniu.com"; } elseif (strstr($zone->iovipHost, "na0") !== false) { - $zone->rsHost = "rs-na0.qiniu.com"; - $zone->rsfHost = "rsf-na0.qiniu.com"; + $zone->rsHost = "rs-na0.qbox.me"; + $zone->rsfHost = "rsf-na0.qbox.me"; $zone->apiHost = "api-na0.qiniu.com"; } elseif (strstr($zone->iovipHost, "as0") !== false) { - $zone->rsHost = "rs-as0.qiniu.com"; - $zone->rsfHost = "rsf-as0.qiniu.com"; + $zone->rsHost = "rs-as0.qbox.me"; + $zone->rsfHost = "rsf-as0.qbox.me"; $zone->apiHost = "api-as0.qiniu.com"; } else { - $zone->rsHost = "rs.qiniu.com"; - $zone->rsfHost = "rsf.qiniu.com"; + $zone->rsHost = "rs.qbox.me"; + $zone->rsfHost = "rsf.qbox.me"; $zone->apiHost = "api.qiniu.com"; }