We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46febff + f125df0 commit ab2c9d8Copy full SHA for ab2c9d8
pom.xml
@@ -3,7 +3,7 @@
3
4
<groupId>cn.jpush.api</groupId>
5
<artifactId>jpush-client</artifactId>
6
- <version>3.6.1</version>
+ <version>3.6.2</version>
7
<packaging>jar</packaging>
8
<url>https://github.com/jpush/jpush-api-java-client</url>
9
<name>JPush API Java Client</name>
src/main/java/cn/jpush/api/file/FileClient.java
@@ -56,8 +56,9 @@ public FileUploadResult uploadFile(FileType type, String filename, Integer ttl)
56
String url = _baseUrl + _filesPath + "/" + typeStr;
57
Map<String, String> fileMap = new HashMap<String,String>();
58
fileMap.put("filename", filename);
59
- fileMap.put("ttl",String.valueOf(ttl));
60
- String response = client.formUploadByPost(url, null, fileMap, null);
+ Map<String, String> textMap = new HashMap<String,String>();
+ textMap.put("ttl",String.valueOf(ttl));
61
+ String response = client.formUploadByPost(url, textMap, fileMap, null);
62
LOG.info("uploadFile:{}", response);
63
return _gson.fromJson(response,
64
new TypeToken<FileUploadResult>() {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments