feat: 重构数据存储路径并优化任务通知机制

将审计日志、会话数据和定时任务文件移动到统一的data目录下
为后台任务添加完成回调功能,优化CC任务完成后的通知流程
更新README和ROADMAP文档,标记已完成的功能项
This commit is contained in:
Yuyao Huang (Sam)
2026-03-29 02:32:48 +08:00
parent 80e4953cf9
commit 52a9d085f7
10 changed files with 200 additions and 58 deletions
+11 -13
View File
@@ -184,22 +184,20 @@ async def send_file(receive_id: str, receive_id_type: str, file_path: str, file_
loop = asyncio.get_running_loop()
# Step 1: Upload file → get file_key
with open(path, "rb") as f:
file_data = f.read()
def _upload():
req = (
CreateFileRequest.builder()
.request_body(
CreateFileRequestBody.builder()
.file_type(file_type)
.file_name(file_name)
.file(file_data)
with open(path, "rb") as f:
req = (
CreateFileRequest.builder()
.request_body(
CreateFileRequestBody.builder()
.file_type(file_type)
.file_name(file_name)
.file(f)
.build()
)
.build()
)
.build()
)
return _client.im.v1.file.create(req)
return _client.im.v1.file.create(req)
upload_resp = await loop.run_in_executor(None, _upload)