File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ final class Config
1313 const API_HOST = 'http://api.qiniu.com ' ; // 数据处理操作Host
1414
1515 public static $ upHost ; // 上传Host
16- public static $ upBackupHost ; // 上传备用Host
16+ public static $ upHostBackup ; // 上传备用Host
1717 public static $ zone ; // 设置上传的Zone
1818
1919 public function __construct () // 构造函数,默认为zone0
@@ -26,7 +26,7 @@ public static function setZone(Zone $z)
2626 {
2727 self ::$ zone = $ z ;
2828 self ::$ upHost = $ z ::$ upHost ;
29- self ::$ upBackupHost = $ z ::$ upBackupHost ;
29+ self ::$ upHostBackup = $ z ::$ upHostBackup ;
3030 return ;
3131 }
3232}
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public function upload()
7777 $ ret = $ response ->json ();
7878 }
7979 if ($ response ->statusCode < 0 ) {
80- $ this ->host = $ confg ::$ upBackupHost ;
80+ $ this ->host = $ config ::$ upHostBackup ;
8181 }
8282 if ($ response ->needRetry () || !isset ($ ret ['crc32 ' ]) || $ crc != $ ret ['crc32 ' ]) {
8383 $ response = $ this ->makeBlock ($ data , $ blockSize );
Original file line number Diff line number Diff line change 44final class Zone
55{
66 public static $ upHost = 'http://up.qiniu.com ' ;
7- public static $ upBackupHost = 'http://upload.qiniu.com ' ;
7+ public static $ upHostBackup = 'http://upload.qiniu.com ' ;
88
99 public function __construct ()
1010 {
@@ -17,7 +17,7 @@ public function setUpHost($host)
1717
1818 public function setUpBackupHost ($ host )
1919 {
20- self ::$ upBackupHost = $ host ;
20+ self ::$ upHostBackup = $ host ;
2121 }
2222
2323 public static function zone0 ()
You can’t perform that action at this time.
0 commit comments