Jelajahi Sumber

Merge branch 'dev-python' into smart-shooter-merge

rambo 4 bulan lalu
induk
melakukan
c48d132e53
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      python/service/OnePicTest.py

+ 1 - 1
python/service/OnePicTest.py

@@ -94,7 +94,7 @@ class OnePicTest():
         if not os.path.exists(self.pic_path):
             raise UnicornException("图片不存在")
         image_pth = Image.open(self.pic_path)
-        if image_pth.mode != "RGB":
+        if image_pth.mode == "RGBA":
             raise UnicornException("抠图图片不能是PNG")
         return_data = self.deal_image(self.pic_path)
         # if return_data["message"]: