Forráskód Böngészése

修复吸虫塔图片数据为0的异常对接

yf_fyh 2 éve
szülő
commit
c87ea863af
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      apps/Equipment/views.py

+ 1 - 1
apps/Equipment/views.py

@@ -802,7 +802,7 @@ class XctDevicePhotoView(APIView):
                 Image = settings.CONFIG["image_url"]["xct_img_forward"] + "/" + item["addr"]
             Result = item["indentify_result"] if item["indentify_result"] else "0"
             indentify_photo = item["indentify_photo"]
-            if indentify_photo:
+            if indentify_photo and indentify_photo!="0":
                 if indentify_photo.startswith("http"):
                     Result_image = indentify_photo
                 elif indentify_photo.startswith("/"):