We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b613a6 commit b9ea83eCopy full SHA for b9ea83e
1 file changed
qiniu/fop.js
@@ -19,7 +19,7 @@ function OperationManager (mac, config) {
19
* @param {string} bucket 空间名称
20
* @param {string} key 文件名称
21
* @param {string[]} fops 处理指令
22
- * @param {string} pipeline 队列名称
+ * @param {string} [pipeline] 队列名称
23
* @param {object} options 可选参数
24
* @param {string} [options.notifyURL] 回调业务服务器,通知处理结果
25
* @param {boolean} [options.force] 是否强制覆盖已有的同名文件
@@ -47,8 +47,8 @@ OperationManager.prototype.pfop = function (
47
}
48
49
// pipeline
50
- if (!pipeline) {
51
- delete reqParams.pipeline;
+ if (pipeline) {
+ reqParams.pipeline = pipeline;
52
53
54
// notifyURL
0 commit comments