瀏覽代碼

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

yf_fyh 2 年之前
父節點
當前提交
c87ea863af
共有 1 個文件被更改,包括 1 次插入1 次删除
  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("/"):