mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 小修
parent
368abc19d7
commit
71a0176182
|
|
@ -255,5 +255,4 @@ def compress_base64_image_by_scale(base64_data: str, scale: float = 0.5) -> str:
|
|||
print(f"\033[1;31m[错误]\033[0m 压缩图片失败: {str(e)}")
|
||||
import traceback
|
||||
print(traceback.format_exc())
|
||||
return base64_data
|
||||
|
||||
return base64_data
|
||||
|
|
@ -7,7 +7,7 @@ from typing import Tuple, Union
|
|||
from nonebot import get_driver
|
||||
from loguru import logger
|
||||
from ..chat.config import global_config
|
||||
from ..chat.utils_image import compress_base64_image_by_scale,compress_image
|
||||
from ..chat.utils_image import compress_base64_image_by_scale
|
||||
|
||||
driver = get_driver()
|
||||
config = driver.config
|
||||
|
|
|
|||
Loading…
Reference in New Issue