From faff7314b240922d20fdd2fbc455c61dbc297cd5 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期一, 29 十二月 2025 23:38:00 +0800
Subject: [PATCH] feat: 优化变更状态
---
ruoyi-system/src/main/java/com/ruoyi/system/file/FileUploadServiceImpl.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/file/FileUploadServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/file/FileUploadServiceImpl.java
index ae26026..8b186b4 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/file/FileUploadServiceImpl.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/file/FileUploadServiceImpl.java
@@ -107,7 +107,7 @@
try {
// 浠嶶RL涓嬭浇鏂囦欢
byte[] fileBytes = downloadFromUrl(fileUrl);
- if (fileBytes == null || fileBytes.length == 0) {
+ if (fileBytes.length == 0) {
return FileUploadResponse.error("浠嶶RL涓嬭浇鏂囦欢澶辫触");
}
@@ -258,7 +258,7 @@
}
try {
- log.info("寮�濮嬭В鏋怭HP鍝嶅簲: {}", response);
+// log.info("寮�濮嬭В鏋怭HP鍝嶅簲: {}", response);
// 鏍规嵁PHP鎺ュ彛鐨勫疄闄呰繑鍥炴牸寮忚繘琛岃В鏋�
// PHP杩斿洖鏍煎紡: {"success": true, "message": "鏂囦欢涓婁紶鎴愬姛", "data": {...}}
@@ -267,7 +267,7 @@
String filePath = extractFilePathFromResponse(response);
String thumbnailPath = extractThumbnailPathFromResponse(response);
- log.info("瑙f瀽缁撴灉 - filePath: {}, thumbnailPath: {}", filePath, thumbnailPath);
+// log.info("瑙f瀽缁撴灉 - filePath: {}, thumbnailPath: {}", filePath, thumbnailPath);
// 鍒涘缓鍝嶅簲瀵硅薄
FileUploadResponse uploadResponse = FileUploadResponse.success(filePath, "涓婁紶鎴愬姛");
@@ -475,7 +475,7 @@
return uploadResponse;
}
- log.info("涓婁紶鏂囦欢鎴愬姛 鏂囦欢:{} 缂╃暐:{}",uploadResponse.getFilePath(),uploadResponse.getThumbnailPath());
+// log.info("涓婁紶鏂囦欢鎴愬姛 鏂囦欢:{} 缂╃暐:{}",uploadResponse.getFilePath(),uploadResponse.getThumbnailPath());
return uploadResponse;
} catch (Exception e) {
--
Gitblit v1.9.1