diff --git a/utils/client.py b/utils/client.py index b10b1ff..16faa55 100644 --- a/utils/client.py +++ b/utils/client.py @@ -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: 超时时间,单位为秒 diff --git a/普康健康自动化/main.py b/普康健康自动化/main.py index c7fe829..edceb61 100644 --- a/普康健康自动化/main.py +++ b/普康健康自动化/main.py @@ -1116,7 +1116,7 @@ def disease_diagnosis(**kwargs) -> str | None: # ------------------------- -# 主程序 +# 主逻辑 # ------------------------- @@ -1168,8 +1168,7 @@ if __name__ == "__main__": "被保人信息": {}, # 实验阶段被保人信息为空字典 "其它信息": {}, }, - "发票层": [], - "小项层": [], + "费项层": [], } # 遍历赔案目录中影像件地址