新增二维码无效地址,优化页码判空

This commit is contained in:
2024-10-18 16:21:39 +08:00
parent 814730a0f0
commit 727743d20e

View File

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