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])