File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,21 @@ public static function zoneNa0()
9696 return $ Zone_na0 ;
9797 }
9898
99+ //新加坡机房
100+ public static function zoneAs0 ()
101+ {
102+ //新加坡机房
103+ $ Zone_na0 = new Zone (
104+ array ('up-as0.qiniup.com ' ),
105+ array ('upload-as0.qiniup.com ' ),
106+ "rs-as0.qiniu.com " ,
107+ "rsf-as0.qiniu.com " ,
108+ "api-as0.qiniu.com " ,
109+ "iovip-as0.qbox.me "
110+ );
111+ return $ Zone_as0 ;
112+ }
113+
99114 /*
100115 * GET /v2/query?ak=<ak>&&bucket=<bucket>
101116 **/
@@ -140,6 +155,10 @@ public static function queryZone($ak, $bucket)
140155 $ zone ->rsHost = "rs-na0.qiniu.com " ;
141156 $ zone ->rsfHost = "rsf-na0.qiniu.com " ;
142157 $ zone ->apiHost = "api-na0.qiniu.com " ;
158+ } elseif (strstr ($ zone ->iovipHost , "as0 " ) !== false ) {
159+ $ zone ->rsHost = "rs-as0.qiniu.com " ;
160+ $ zone ->rsfHost = "rsf-as0.qiniu.com " ;
161+ $ zone ->apiHost = "api-as0.qiniu.com " ;
143162 } else {
144163 $ zone ->rsHost = "rs.qiniu.com " ;
145164 $ zone ->rsfHost = "rsf.qiniu.com " ;
@@ -149,3 +168,4 @@ public static function queryZone($ak, $bucket)
149168 return $ zone ;
150169 }
151170}
171+
You can’t perform that action at this time.
0 commit comments