Update codebase and add coverage report
Removed an old run configuration, added a new coverage XML report, and updated multiple source files including main.py, middleware, models, routers, services, tests, and utility modules. Also updated pyproject.toml and the lock file. These changes likely include code improvements, test coverage updates, and dependency adjustments.
This commit is contained in:
@@ -6,11 +6,6 @@ async def verify_captcha(request: CaptchaRequestBase) -> bool:
|
||||
"""
|
||||
验证 Google reCAPTCHA v2/v3 的 token 是否有效。
|
||||
|
||||
:param token: 用户提交的 reCAPTCHA token
|
||||
:type token: str
|
||||
:param secret_key: Google reCAPTCHA 的密钥
|
||||
:type secret_key: str
|
||||
|
||||
:return: 如果验证成功返回 True,否则返回 False
|
||||
:rtype: bool
|
||||
"""
|
||||
|
||||
@@ -6,11 +6,6 @@ async def verify_captcha(request: CaptchaRequestBase) -> bool:
|
||||
"""
|
||||
验证 Turnstile 的 token 是否有效。
|
||||
|
||||
:param token: 用户提交的 Turnstile token
|
||||
:type token: str
|
||||
:param secret_key: Turnstile 的密钥
|
||||
:type secret_key: str
|
||||
|
||||
:return: 如果验证成功返回 True,否则返回 False
|
||||
:rtype: bool
|
||||
"""
|
||||
|
||||
@@ -3,4 +3,5 @@ import aiohttp
|
||||
|
||||
async def get_access_token(
|
||||
code: str
|
||||
)
|
||||
):
|
||||
...
|
||||
Reference in New Issue
Block a user