File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 11namespace Qiniu . Storage
22{
33 /// <summary>
4- /// 目前已支持的区域:华东/华北/华南/北美
4+ /// 目前已支持的区域:华东/华北/华南/北美/新加坡
55 /// </summary>
66 public class Zone
77 {
@@ -90,5 +90,18 @@ public class Zone
9090 SrcUpHosts = new string [ ] { "up-na0.qiniup.com" } ,
9191 CdnUpHosts = new string [ ] { "upload-na0.qiniup.com" }
9292 } ;
93+
94+ /// <summary>
95+ /// 新加坡
96+ /// </summary>
97+ public static Zone ZONE_AS_Singapore = new Zone ( )
98+ {
99+ RsHost = "rs-as0.qiniu.com" ,
100+ RsfHost = "rsf-as0.qiniu.com" ,
101+ ApiHost = "api-as0.qiniu.com" ,
102+ IovipHost = "iovip-as0.qbox.me" ,
103+ SrcUpHosts = new string [ ] { "up-as0.qiniup.com" } ,
104+ CdnUpHosts = new string [ ] { "upload-as0.qiniup.com" }
105+ } ;
93106 }
94107}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public static Zone QueryZone(string accessKey, string bucket)
6161 zone . RsHost = "rs-z1.qiniu.com" ;
6262 zone . RsfHost = "rsf-z1.qiniu.com" ;
6363 }
64- else if ( zone . IovipHost . Contains ( "z1 " ) )
64+ else if ( zone . IovipHost . Contains ( "z2 " ) )
6565 {
6666 zone . ApiHost = "api-z2.qiniu.com" ;
6767 zone . RsHost = "rs-z2.qiniu.com" ;
@@ -73,6 +73,12 @@ public static Zone QueryZone(string accessKey, string bucket)
7373 zone . RsHost = "rs-na0.qiniu.com" ;
7474 zone . RsfHost = "rsf-na0.qiniu.com" ;
7575 }
76+ else if ( zone . IovipHost . Contains ( "as0" ) )
77+ {
78+ zone . ApiHost = "api-as0.qiniu.com" ;
79+ zone . RsHost = "rs-as0.qiniu.com" ;
80+ zone . RsfHost = "rsf-as0.qiniu.com" ;
81+ }
7682 else
7783 {
7884 zone . ApiHost = "api.qiniu.com" ;
You can’t perform that action at this time.
0 commit comments