Explorar el Código

Merge branch 'dev-python'

rambo hace 8 meses
padre
commit
2a91c95a0f
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 2 0
      python/api.py
  2. 0 1
      python/service/run_main.py

+ 2 - 0
python/api.py

@@ -163,6 +163,8 @@ def fromExcelHandler(params: HandlerDetail):
             for tempItem in params.temp_list:
                 temp_class[tempItem.template_id] = tempItem.template_local_classes
                 temp_name_list.append(tempItem.template_id)
+            if goods_art_no_image_dir not in path:
+                path = path + "/" + goods_art_no_image_dir
             config_data = {
                 "image_dir": path,
                 "image_order": params.template_image_order,

+ 0 - 1
python/service/run_main.py

@@ -366,7 +366,6 @@ class RunMain():
         goods_art_no = config_data["goods_art_no"]
         is_check_color_is_all = config_data["is_check_color_is_all"]
         detail_is_pass = config_data["detail_is_pass"]
-        print("image_dir====>", image_dir)
         error_folder_list = []
         # 遍历货号获取所有货号--可能为编号
         folder_name_list = get_all_dir_info(