Skip to content

Commit

Permalink
fix(build): no desc
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Jul 31, 2024
1 parent 94be00c commit 98bcd21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -124,12 +119,6 @@
<version>1.5.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public Result sendChannelPictureMessage(String channelId, File file) {
if (!file.exists()) {
throw new RuntimeException("传入的文件不存在");
}
JSONObject jsonObject = ResourceApi.uploadResource(bot.getAuthorization(), file.getPath()).getData();
JSONObject jsonObject = bot.getApi().getResourceApi().uploadResource(file.getPath()).getData();
int width = jsonObject.getInt("width");
int height = jsonObject.getInt("height");
String url = jsonObject.getString("url");
Expand Down

0 comments on commit 98bcd21

Please sign in to comment.