sehuatang pdf 优化

This commit is contained in:
liuwei
2025-12-25 15:36:02 +08:00
parent 408bf12342
commit f5a51fa2ec
3 changed files with 42 additions and 25 deletions

View File

@@ -702,12 +702,9 @@ class Robot:
async def generate_sehuatang_pdf(self):
try:
self.LOG.info("开始生成PDF,generate_sehuatang_pdf")
try:
path = pdf_file_path()
except Exception as e:
self.LOG.error(f"generate_sehuatang_pdf error: {e}")
path = pdf_file_path_undetected()
tag, path = pdf_file_path()
if not tag:
tag, path = pdf_file_path_undetected()
# 暂时只发4K群
await self.send_group_file_message(path, Feature.PDF_CAPABILITY)
except Exception as e: