新增二维码无效地址,优化页码判空
This commit is contained in:
@@ -95,7 +95,8 @@ def parse_qrcode(img_path, image_id):
|
|||||||
if not pdf_url:
|
if not pdf_url:
|
||||||
continue
|
continue
|
||||||
return _parse_pdf_url(pdf_url)
|
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
|
continue
|
||||||
elif url.startswith('http://dzpj.ntzyy.com'):
|
elif url.startswith('http://dzpj.ntzyy.com'):
|
||||||
@@ -593,7 +594,7 @@ def photo_review(pk_phhd, name):
|
|||||||
|
|
||||||
if review_result['has_cost']:
|
if review_result['has_cost']:
|
||||||
cost_missing_page = {}
|
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(',')
|
page_nums = cost_data['page_nums'].split(',')
|
||||||
required_set = set(range(1, cost_data['page_count'] + 1))
|
required_set = set(range(1, cost_data['page_count'] + 1))
|
||||||
page_set = set([int(num) for num in page_nums])
|
page_set = set([int(num) for num in page_nums])
|
||||||
|
|||||||
Reference in New Issue
Block a user