fix: remove repeat util

This commit is contained in:
zhayujie
2023-11-27 14:24:26 +08:00
parent 697c6d5fbe
commit 21ad51ffbf
3 changed files with 4 additions and 12 deletions

View File

@@ -4,7 +4,7 @@ import json
import requests
from common.log import logger
from common.tmp_dir import TmpDir
from utils import file_util
from common import utils
class FeishuMessage(ChatMessage):
@@ -28,7 +28,7 @@ class FeishuMessage(ChatMessage):
file_key = content.get("file_key")
file_name = content.get("file_name")
self.content = TmpDir().path() + file_key + "." + file_util.get_path_suffix(file_name)
self.content = TmpDir().path() + file_key + "." + utils.get_path_suffix(file_name)
def _download_file():
# 如果响应状态码是200则将响应内容写入本地文件