From 727743d20e39f11638daa446b8cfa8aeb5813752 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Fri, 18 Oct 2024 16:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E6=97=A0=E6=95=88=E5=9C=B0=E5=9D=80=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=A1=B5=E7=A0=81=E5=88=A4=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_review/auto_photo_review.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/photo_review/auto_photo_review.py b/photo_review/auto_photo_review.py index aeb00da..8979cbb 100644 --- a/photo_review/auto_photo_review.py +++ b/photo_review/auto_photo_review.py @@ -95,7 +95,8 @@ def parse_qrcode(img_path, image_id): if not pdf_url: continue return _parse_pdf_url(pdf_url) - elif url.startswith('http://weixin.qq.com'): + elif (url.startswith('http://weixin.qq.com') + or url == 'https://ybj.jszwfw.gov.cn/hsa-app-panel/index.html'): # 无效地址 continue elif url.startswith('http://dzpj.ntzyy.com'): @@ -593,7 +594,7 @@ def photo_review(pk_phhd, name): if review_result['has_cost']: cost_missing_page = {} - if cost_data.get('page_nums'): + if cost_data.get('page_nums') and cost_data.get('page_count'): page_nums = cost_data['page_nums'].split(',') required_set = set(range(1, cost_data['page_count'] + 1)) page_set = set([int(num) for num in page_nums])