FIX
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -3718,10 +3718,14 @@ def fsm_compare_thread(application_id, application_entity, uniq_seq, ocr_res_id, | ... | @@ -3718,10 +3718,14 @@ def fsm_compare_thread(application_id, application_entity, uniq_seq, ocr_res_id, |
3718 | 3718 | ||
3719 | # 实时查询延迟时间 | 3719 | # 实时查询延迟时间 |
3720 | delay_time_config = Configs.objects.filter(id=4).first() | 3720 | delay_time_config = Configs.objects.filter(id=4).first() |
3721 | if delay_time_config is None or delay_time is None or not delay_time.isdigit(): | 3721 | if delay_time_config is not None and delay_time_config.value |
3722 | if delay_time_config is None: | ||
3722 | delay_time = 0 | 3723 | delay_time = 0 |
3723 | else: | 3724 | else: |
3724 | delay_time = delay_time_config.value | 3725 | delay_time = delay_time_config.value |
3726 | if delay_time is None or not delay_time.isdigit(): | ||
3727 | delay_time = 0 | ||
3728 | else: | ||
3725 | compare_log.info('delay_time:{0}'.format(delay_time)) | 3729 | compare_log.info('delay_time:{0}'.format(delay_time)) |
3726 | 3730 | ||
3727 | # 查看此订单号下是否有未完成的文件,如果有,等1分钟 | 3731 | # 查看此订单号下是否有未完成的文件,如果有,等1分钟 | ... | ... |
-
Please register or sign in to post a comment