xiangpei
2025-02-18 8b3313c5b26855355b40067eeb3678fd3476baf1
ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/uitil/HttpUtils.java
@@ -110,7 +110,7 @@
//     * @param parameter
     * @throws Exception
     */
    public static String sendDeleteRequest(String url, String ossId) throws IOException {
    public static HttpResponse sendDeleteRequest(String url, String ossId) throws IOException {
        org.apache.http.client.HttpClient httpClient = HttpClientBuilder.create().build();
        HttpPost httpPost = new HttpPost(url);
@@ -127,9 +127,8 @@
        httpPost.setEntity(multipart);
        HttpResponse response = httpClient.execute(httpPost);
        String responseBody = EntityUtils.toString(response.getEntity());
        System.out.println("Response: " + responseBody);
        return responseBody;
        return response;
    }