fix(*): 将文件导入从绝对路径给为相对路径

This commit is contained in:
2026-05-01 22:06:11 +08:00
parent 26ee46bb7b
commit 55ae431d10
6 changed files with 12 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
from aiohttp import web
from response import ok
from ..response import ok
async def health_handler(request: web.Request) -> web.Response:

View File

@@ -4,8 +4,8 @@ import asyncio
from aiohttp import web
from config import QQ_API_MAX_RETRIES, QQ_API_TIMEOUT
from response import error, ok
from ..config import QQ_API_MAX_RETRIES, QQ_API_TIMEOUT
from ..response import error, ok
VALID_MSG_TYPES = {"text", "image", "file", "video"}

View File

@@ -7,8 +7,8 @@ from pathlib import Path
from aiohttp import BodyPartReader, web
from config import ALLOWED_EXTENSIONS, MAX_UPLOAD_SIZE, UPLOAD_DIR
from response import error, ok
from ..config import ALLOWED_EXTENSIONS, MAX_UPLOAD_SIZE, UPLOAD_DIR
from ..response import error, ok
logger = logging.getLogger("webhook-plugin.upload")