File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
main/java/com/qiniu/api/rs
test/java/com/qiniu/testing Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -113,11 +113,11 @@ public String marshal() throws JSONException {
113
113
if (this .persistentOps != null && this .persistentOps .length () > 0 ) {
114
114
stringer .key ("persistentOps" ).value (this .persistentOps );
115
115
}
116
- if (this .transform != null && this .transform .length () > 0 ) {
117
- stringer .key ("transform" ).value (this .transform );
116
+ if (this .transform != null && this .transform .length () > 0 ) {
117
+ stringer .key ("transform" ).value (this .transform );
118
118
}
119
119
if (this .fopTimeout > 0 ) {
120
- stringer .key ("fopTimeout" ).value (this .fopTimeout );
120
+ stringer .key ("fopTimeout" ).value (this .fopTimeout );
121
121
}
122
122
stringer .key ("deadline" ).value (this .deadline );
123
123
stringer .endObject ();
Original file line number Diff line number Diff line change @@ -70,16 +70,16 @@ public void testPut() throws Exception {
70
70
* 测试的时候请将例中的 localFile 改成合法的文件路径。
71
71
**/
72
72
public void testPutTransform () throws Exception {
73
- PutPolicy putPolicy = new PutPolicy (bucketName );
74
- putPolicy .transform = "avthumb/mp3" ;
75
- putPolicy .fopTimeout = 60 ;
73
+ PutPolicy putPolicy = new PutPolicy (bucketName );
74
+ putPolicy .transform = "avthumb/mp3" ;
75
+ putPolicy .fopTimeout = 60 ;
76
76
77
- String uptoken = putPolicy .token (mac );
77
+ String uptoken = putPolicy .token (mac );
78
78
String localFile = "/Users/ikbear/7niu/music.mp4" ;
79
- String key = "music-ikbear.mp3" ;
79
+ String key = "music-ikbear.mp3" ;
80
80
81
81
PutExtra extra = new PutExtra ();
82
-
82
+
83
83
PutRet ret = IoApi .putFile (uptoken , key , localFile , extra );
84
84
assertTrue (ret .ok ());
85
85
}
You can’t perform that action at this time.
0 commit comments