251201更新
This commit is contained in:
parent
b34a1da1a0
commit
a0a49bfcda
|
|
@ -26,7 +26,6 @@ from requests.adapters import HTTPAdapter
|
|||
from sqlalchemy import create_engine, text
|
||||
from urllib3.util.retry import Retry
|
||||
|
||||
|
||||
"""
|
||||
封装sqlalchemy,实现按照SQL查询
|
||||
类和函数的区别
|
||||
|
|
@ -156,6 +155,7 @@ def restrict(refill_rate=5, max_tokens=5):
|
|||
time.sleep(wait_time * 1.5**retries)
|
||||
retries += 1
|
||||
raise Exception("request too frequently")
|
||||
|
||||
return wrapper
|
||||
|
||||
return decorator
|
||||
|
|
@ -244,7 +244,7 @@ class HTTPClient:
|
|||
total: int = 3,
|
||||
backoff_factor: float = 0.5,
|
||||
cache_enabled: bool = False,
|
||||
cache_ttl: int = 90,
|
||||
cache_ttl: int = 360,
|
||||
):
|
||||
"""
|
||||
:param timeout: 超时时间,单位为秒
|
||||
|
|
|
|||
|
|
@ -1116,7 +1116,7 @@ def disease_diagnosis(**kwargs) -> str | None:
|
|||
|
||||
|
||||
# -------------------------
|
||||
# 主程序
|
||||
# 主逻辑
|
||||
# -------------------------
|
||||
|
||||
|
||||
|
|
@ -1168,8 +1168,7 @@ if __name__ == "__main__":
|
|||
"被保人信息": {}, # 实验阶段被保人信息为空字典
|
||||
"其它信息": {},
|
||||
},
|
||||
"发票层": [],
|
||||
"小项层": [],
|
||||
"费项层": [],
|
||||
}
|
||||
|
||||
# 遍历赔案目录中影像件地址
|
||||
|
|
|
|||
Loading…
Reference in New Issue