Skip to content

Commit 324db49

Browse files
authored
Merge pull request #285 from ankadada/master
split examples
2 parents 4c4f9b8 + 0e96190 commit 324db49

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

examples/persistent_fop_status.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33

44
use Qiniu\Processing\PersistentFop;
55

6+
$pfop = new Qiniu\Processing\PersistentFop(null, null);
7+
68
// 触发持久化处理后返回的 Id
7-
$persistentId = 'z0.564d5f977823de48a85ece59';
9+
$persistentId = 'z1.5b8a48e5856db843bc24cfc3';
810

911
// 通过persistentId查询该 触发持久化处理的状态
10-
$status = PersistentFop::status($persistentId);
12+
list($ret, $err) = $pfop->status($persistentId);
1113

12-
var_dump($status);
14+
if ($err) {
15+
print_r($err);
16+
} else {
17+
print_r($ret);
18+
}

0 commit comments

Comments
 (0)