From 2f09efc660bf2cc94cbc5291ad25ca06fc9bdadf Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期六, 24 一月 2026 22:03:09 +0800
Subject: [PATCH] feat: 增加OCR测试,车辆

---
 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