|
|
@@ -252,8 +252,16 @@ class RemoteControlV2(BaseClass):
|
|
|
)
|
|
|
else:
|
|
|
print("开始单拍1")
|
|
|
- self.photo_take_state = 1
|
|
|
+ if record.image_index == 19:
|
|
|
+ self.sendSocketMessage(
|
|
|
+ code=1,
|
|
|
+ msg="单拍失败,单个货号最多允许拍摄20张产品图",
|
|
|
+ data=None,
|
|
|
+ device_status=2,
|
|
|
+ )
|
|
|
+ return
|
|
|
image_index = record.image_index + 1
|
|
|
+ self.photo_take_state = 1
|
|
|
insert_photo_records(
|
|
|
record.image_deal_mode, record.goods_art_no, image_index
|
|
|
)
|