Skip to content

Commit 69f35d6

Browse files
authored
Merge pull request #230 from rwifeng/code_comments
refresh dir err desc
2 parents 20a9155 + 4c467b5 commit 69f35d6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

examples/cdn_manager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
);
2323

2424
$cdnManager = new CdnManager($auth);
25+
26+
// 目前客户默认没有目录刷新权限,刷新会有400038报错,参考:https://developer.qiniu.com/fusion/api/1229/cache-refresh
27+
// 需要刷新目录请工单联系技术支持 https://support.qiniu.com/tickets/category
2528
list($refreshResult, $refreshErr) = $cdnManager->refreshUrlsAndDirs($urls, $dirs);
2629
if ($refreshErr != null) {
2730
var_dump($refreshErr);

src/Qiniu/Cdn/CdnManager.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,24 @@ public function refreshUrls($urls)
2323
return $this->refreshUrlsAndDirs($urls, null);
2424
}
2525

26+
/*
27+
* 目前客户默认没有目录刷新权限,刷新会有400038报错,参考:https://developer.qiniu.com/fusion/api/1229/cache-refresh
28+
* 需要刷新目录请工单联系技术支持 https://support.qiniu.com/tickets/category
29+
*/
2630
public function refreshDirs($dirs)
2731
{
2832
return $this->refreshUrlsAndDirs(null, $dirs);
2933
}
3034

3135
/**
3236
* @param array $urls 待刷新的文件链接数组
37+
* @param array $dirs 待刷新的目录链接数组
3338
*
3439
* @return array 刷新的请求回复和错误,参考 examples/cdn_manager.php 代码
3540
* @link http://developer.qiniu.com/article/fusion/api/refresh.html
41+
*
42+
* 目前客户默认没有目录刷新权限,刷新会有400038报错,参考:https://developer.qiniu.com/fusion/api/1229/cache-refresh
43+
* 需要刷新目录请工单联系技术支持 https://support.qiniu.com/tickets/category
3644
*/
3745
public function refreshUrlsAndDirs($urls, $dirs)
3846
{

0 commit comments

Comments
 (0)