@@ -18,16 +18,22 @@ public function __construct(Auth $auth)
1818 $ this ->server = 'http://fusion.qiniuapi.com ' ;
1919 }
2020
21- public function refreshUrls ($ urls )
21+ /**
22+ * @param array $urls 待刷新的文件链接数组
23+ * @return array
24+ */
25+ public function refreshUrls (array $ urls )
2226 {
2327 return $ this ->refreshUrlsAndDirs ($ urls , null );
2428 }
2529
26- /*
27- * 目前客户默认没有目录刷新权限,刷新会有400038报错,参考:https://developer.qiniu.com/fusion/api/1229/cache-refresh
28- * 需要刷新目录请工单联系技术支持 https://support.qiniu.com/tickets/category
30+ /**
31+ * @param array $dirs 待刷新的文件链接数组
32+ * @return array
33+ * 目前客户默认没有目录刷新权限,刷新会有400038报错,参考:https://developer.qiniu.com/fusion/api/1229/cache-refresh
34+ * 需要刷新目录请工单联系技术支持 https://support.qiniu.com/tickets/category
2935 */
30- public function refreshDirs ($ dirs )
36+ public function refreshDirs (array $ dirs )
3137 {
3238 return $ this ->refreshUrlsAndDirs (null , $ dirs );
3339 }
@@ -42,7 +48,7 @@ public function refreshDirs($dirs)
4248 * 目前客户默认没有目录刷新权限,刷新会有400038报错,参考:https://developer.qiniu.com/fusion/api/1229/cache-refresh
4349 * 需要刷新目录请工单联系技术支持 https://support.qiniu.com/tickets/category
4450 */
45- public function refreshUrlsAndDirs ($ urls , $ dirs )
51+ public function refreshUrlsAndDirs (array $ urls , array $ dirs )
4652 {
4753 $ req = array ();
4854 if (!empty ($ urls )) {
@@ -64,7 +70,7 @@ public function refreshUrlsAndDirs($urls, $dirs)
6470 *
6571 * @link http://developer.qiniu.com/article/fusion/api/refresh.html
6672 */
67- public function prefetchUrls ($ urls )
73+ public function prefetchUrls (array $ urls )
6874 {
6975 $ req = array (
7076 'urls ' => $ urls ,
@@ -85,7 +91,7 @@ public function prefetchUrls($urls)
8591 *
8692 * @link http://developer.qiniu.com/article/fusion/api/traffic-bandwidth.html
8793 */
88- public function getBandwidthData ($ domains , $ startDate , $ endDate , $ granularity )
94+ public function getBandwidthData (array $ domains , $ startDate , $ endDate , $ granularity )
8995 {
9096 $ req = array ();
9197 $ req ['domains ' ] = implode ('; ' , $ domains );
@@ -108,7 +114,7 @@ public function getBandwidthData($domains, $startDate, $endDate, $granularity)
108114 *
109115 * @link http://developer.qiniu.com/article/fusion/api/traffic-bandwidth.html
110116 */
111- public function getFluxData ($ domains , $ startDate , $ endDate , $ granularity )
117+ public function getFluxData (array $ domains , $ startDate , $ endDate , $ granularity )
112118 {
113119 $ req = array ();
114120 $ req ['domains ' ] = implode ('; ' , $ domains );
@@ -129,7 +135,7 @@ public function getFluxData($domains, $startDate, $endDate, $granularity)
129135 *
130136 * @link http://developer.qiniu.com/article/fusion/api/log.html
131137 */
132- public function getCdnLogList ($ domains , $ logDate )
138+ public function getCdnLogList (array $ domains , $ logDate )
133139 {
134140 $ req = array ();
135141 $ req ['domains ' ] = implode ('; ' , $ domains );
0 commit comments