Skip to content

Commit ab2c9d8

Browse files
authored
Merge pull request #199 from jpush/feature/20220329_TS-7344
Feature/20220329_ts-7344
2 parents 46febff + f125df0 commit ab2c9d8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>cn.jpush.api</groupId>
55
<artifactId>jpush-client</artifactId>
6-
<version>3.6.1</version>
6+
<version>3.6.2</version>
77
<packaging>jar</packaging>
88
<url>https://github.com/jpush/jpush-api-java-client</url>
99
<name>JPush API Java Client</name>

src/main/java/cn/jpush/api/file/FileClient.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ public FileUploadResult uploadFile(FileType type, String filename, Integer ttl)
5656
String url = _baseUrl + _filesPath + "/" + typeStr;
5757
Map<String, String> fileMap = new HashMap<String,String>();
5858
fileMap.put("filename", filename);
59-
fileMap.put("ttl",String.valueOf(ttl));
60-
String response = client.formUploadByPost(url, null, fileMap, null);
59+
Map<String, String> textMap = new HashMap<String,String>();
60+
textMap.put("ttl",String.valueOf(ttl));
61+
String response = client.formUploadByPost(url, textMap, fileMap, null);
6162
LOG.info("uploadFile:{}", response);
6263
return _gson.fromJson(response,
6364
new TypeToken<FileUploadResult>() {

0 commit comments

Comments
 (0)