feat: stabilize multi-region runtime sync and worker orchestration
This commit is contained in:
@@ -81,10 +81,9 @@ class JuchaDetector(BaseDetector):
|
||||
return whois_info
|
||||
else:
|
||||
self._log_warning(f"聚查WHOIS查询失败: {response.status_code}")
|
||||
return {'status': ''}
|
||||
return {'error': f'HTTP {response.status_code}'}
|
||||
except Exception as e:
|
||||
self._handle_exception(e, domain)
|
||||
return {'status': ''}
|
||||
return self._handle_exception(e, domain)
|
||||
|
||||
def check_beian(self, domain):
|
||||
"""
|
||||
@@ -113,10 +112,9 @@ class JuchaDetector(BaseDetector):
|
||||
return beian_info
|
||||
else:
|
||||
self._log_warning(f"聚查备案查询失败: {response.status_code}")
|
||||
return {'has_beian': False, 'beian_year': '', 'is_enterprise': False, 'beian_match': False}
|
||||
return {'error': f'HTTP {response.status_code}'}
|
||||
except Exception as e:
|
||||
self._handle_exception(e, domain)
|
||||
return {'has_beian': False, 'beian_year': '', 'is_enterprise': False, 'beian_match': False}
|
||||
return self._handle_exception(e, domain)
|
||||
|
||||
def check_intercept(self, domain):
|
||||
"""
|
||||
@@ -147,10 +145,9 @@ class JuchaDetector(BaseDetector):
|
||||
}
|
||||
else:
|
||||
self._log_warning(f"聚查拦截查询失败: {response.status_code}")
|
||||
return {'normal': False}
|
||||
return {'error': f'HTTP {response.status_code}'}
|
||||
except Exception as e:
|
||||
self._handle_exception(e, domain)
|
||||
return {'normal': False}
|
||||
return self._handle_exception(e, domain)
|
||||
|
||||
def _extract_whois_info(self, content):
|
||||
"""
|
||||
@@ -225,4 +222,4 @@ class JuchaDetector(BaseDetector):
|
||||
return False
|
||||
except Exception as e:
|
||||
self._handle_exception(e, 'check_intercept_status')
|
||||
return False
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user