Browse Source

要求数量 移除

rambo 6 months ago
parent
commit
caa9b39d93
1 changed files with 4 additions and 4 deletions
  1. 4 4
      python/api.py

+ 4 - 4
python/api.py

@@ -236,10 +236,10 @@ async def handle_detail(request: Request, params: HandlerDetail):
                 raise UnicornException("没有可用货号数据")
             detail_counts = len(params.template_image_order.split(","))
             image_counts = len(images)
-            if image_counts < detail_counts and is_only_cutout != 1:
-                raise UnicornException(
-                    f"货号:[{goods_art_no}],实际照片数量:{image_counts}张,小于详情图要求数量:{detail_counts}张"
-                )
+            # if image_counts < detail_counts and is_only_cutout != 1:
+            #     raise UnicornException(
+            #         f"货号:[{goods_art_no}],实际照片数量:{image_counts}张,小于详情图要求数量:{detail_counts}张"
+            #     )
             image_dir = "{}/data/".format(os.getcwd()).replace("\\", "/")
             check_path(image_dir)
             for itemImg in images: