sehuatang pdf 优化
This commit is contained in:
9
robot.py
9
robot.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user