Skip to content

Commit

Permalink
Update ChannelMessageApi.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Aug 4, 2023
1 parent 1dfd4e2 commit 5e254fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public static JSONObject sendChannelPictureMessage(String authorization, String
if (!file.exists()) {
throw new RuntimeException("传入的文件不存在");
}
JSONObject jsonObject = ResourceApi.uploadResource(authorization, file.getPath());
JSONObject jsonObject = ResourceApi.uploadResource(authorization, file.getPath()).getJSONObject("data");
int width = jsonObject.getInt("width");
int height = jsonObject.getInt("height");
String url = jsonObject.getString("url");
Expand Down

0 comments on commit 5e254fd

Please sign in to comment.