File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,21 @@ public static function zoneNa0()
96
96
return $ Zone_na0 ;
97
97
}
98
98
99
+ //新加坡机房
100
+ public static function zoneAs0 ()
101
+ {
102
+ //新加坡机房
103
+ $ Zone_as0 = 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
+
99
114
/*
100
115
* GET /v2/query?ak=<ak>&&bucket=<bucket>
101
116
**/
@@ -140,6 +155,10 @@ public static function queryZone($ak, $bucket)
140
155
$ zone ->rsHost = "rs-na0.qiniu.com " ;
141
156
$ zone ->rsfHost = "rsf-na0.qiniu.com " ;
142
157
$ 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 " ;
143
162
} else {
144
163
$ zone ->rsHost = "rs.qiniu.com " ;
145
164
$ zone ->rsfHost = "rsf.qiniu.com " ;
You can’t perform that action at this time.
0 commit comments