Skip to content

Commit f60d960

Browse files
committed
Merge pull request #125 from ipy/develop
修正 pfop 预转文档中的一处错误,并添加 pipeline 参数
2 parents 654d51f + c538d57 commit f60d960

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ func pfop(bucketName, keyName, fops, opts, callback);
540540
541541
// 例子
542542
// pfop
543-
qiniu.fop.pfop(TEST_BUCKET, keys[0], 'avinfo', {notifyUrl: 'www.test.com', force: true}, function(err, ret) {
543+
qiniu.fop.pfop(TEST_BUCKET, keys[0], 'avinfo', {notifyURL: 'www.test.com', force: true}, function(err, ret) {
544544
ret.should.have.keys('persistentId');
545545
done();
546546
});

qiniu/fop.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ function pfop(bucket, key, fops, opts, onret) {
7070
if (opts.force) {
7171
param.force = 1;
7272
}
73+
if (opts.pipeline) {
74+
param.pipeline = opts.pipeline;
75+
}
7376

7477
var uri = 'http://api.qiniu.com/pfop/';
7578
var body = querystring.stringify(param);

0 commit comments

Comments
 (0)