Browse Source

去除验证

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

+ 1 - 1
python/api.py

@@ -236,7 +236,7 @@ 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:
+            if image_counts < detail_counts and is_only_cutout != 1:
                 raise UnicornException(
                     f"货号:[{goods_art_no}],实际照片数量:{image_counts}张,小于详情图要求数量:{detail_counts}张"
                 )