Skip to content

Commit e3ffef0

Browse files
author
YangSen-qn
committed
pfop pipline
1 parent b03b2c7 commit e3ffef0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/qiniu/processing/OperationManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ public String pfop(String bucket, String key, StringMap params) throws QiniuExce
116116
}
117117
String pipeline = null;
118118
if (params.get("pipeline") != null) {
119-
if (params.get("pipeline") instanceof Integer) {
119+
if (params.get("pipeline") instanceof String) {
120120
pipeline = (String) params.get("pipeline");
121121
} else {
122-
throw QiniuException.unrecoverable("pipeline type error, String be Integer");
122+
throw QiniuException.unrecoverable("pipeline type error, should be String");
123123
}
124124
}
125125
String notifyUrl = null;

src/test/java/test/com/qiniu/processing/PfopTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void testPfop() throws QiniuException {
5757
System.out.println(fops);
5858

5959
try {
60-
String jobid = operationManager.pfop(bucket, TestConfig.testMp4FileKey, fops, null, notifyURL, force);
60+
String jobid = operationManager.pfop(bucket, TestConfig.testMp4FileKey, fops, "", notifyURL, force);
6161
assertNotNull(jobid);
6262
assertNotEquals("", jobid);
6363
ids.add(jobid);

0 commit comments

Comments
 (0)