Pārlūkot izejas kodu

```
feat(customer-template-service): 添加图片复制过程的日志输出

- 在copyImage方法中添加源路径和目标路径的复制开始日志
- 修复异常处理中的日志参数错误问题
- 保持原有的图片复制功能不变
```

rambo 3 nedēļas atpakaļ
vecāks
revīzija
fac69bf6d8
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      python/service/customer_template_service.py

+ 5 - 3
python/service/customer_template_service.py

@@ -313,8 +313,10 @@ class CustomerTemplateService:
             return None
     def copyImage(self,src_path,limit_path):
         try:
-          shutil.copy(src_path, limit_path)
-          return True
+            print("copyImage 模型图/场景图开始复制",src_path)
+            print("copyImage 模型图/场景图开始复制",limit_path)
+            shutil.copy(src_path, limit_path)
+            return True
         except Exception as e:
-            logger.info(f"copyImage 复制模特图/场景图出错:{str(e)}",src_path,limit_path)
+            logger.info(f"copyImage 复制模特图/场景图出错:{str(e)}")
             return False