rambo 11 месяцев назад
Родитель
Сommit
e315f37098
1 измененных файлов с 11 добавлено и 10 удалено
  1. 11 10
      python/services/deal_cutout.py

+ 11 - 10
python/services/deal_cutout.py

@@ -246,6 +246,7 @@ class DealModelForm:
         }
         responseData = self.get_online_data.search_progress(dataParams)
         generate_ids = self.params.result
+        save_root_path = self.params.save_root_path
         successCount = 0
         failCount = 0
         is_finished = False
@@ -253,16 +254,16 @@ class DealModelForm:
         if generate_ids is None:
             raise UnicornException("参数异常")
         if len(generate_ids) > 0:
-            root_path_list = list(map(lambda x: x.get("root_path"), generate_ids))
-            root_path = ""
-            for root_path_item in root_path_list:
-                if root_path == "":
-                    root_path = root_path_item
-                else:
-                    if len(root_path_item) < len(root_path):
-                        root_path = root_path_item
-            print("root_path", root_path)
-            save_path = f"{root_path}/已扣图"
+            # root_path_list = list(map(lambda x: x.get("root_path"), generate_ids))
+            # root_path = ""
+            # for root_path_item in root_path_list:
+            #     if root_path == "":
+            #         root_path = root_path_item
+            #     else:
+            #         if len(root_path_item) < len(root_path):
+            #             root_path = root_path_item
+            # print("root_path", root_path)
+            save_path = f"{save_root_path}/已扣图"
             check_path(save_path)
         else:
             return is_finished, successCount, failCount, root_path