From d82714db795f6f1257246d38a4093931aed2aea4 Mon Sep 17 00:00:00 2001 From: hermitgreen Date: Tue, 19 Mar 2024 19:31:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A4=8D=E7=89=A9=E8=AF=86=E5=88=ABfc=20bad=20?= =?UTF-8?q?case=E5=B7=A5=E7=A8=8B=E5=85=9C=E5=BA=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appbuilder/core/components/plant_recognize/component.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appbuilder/core/components/plant_recognize/component.py b/appbuilder/core/components/plant_recognize/component.py index a503cf519..b679eccf1 100644 --- a/appbuilder/core/components/plant_recognize/component.py +++ b/appbuilder/core/components/plant_recognize/component.py @@ -171,6 +171,8 @@ def _recognize_w_post_process(self, img_path, img_url, file_urls): if img_path in file_urls: req.url = file_urls[img_path] if img_url: + if img_url in file_urls: + img_url = file_urls['img_url'] req.url = img_url req.top_num = 6 req.baike_num = 0