下图和发pdf分离
This commit is contained in:
22
robot.py
22
robot.py
@@ -549,13 +549,19 @@ class Robot(Job):
|
||||
def xiu_ren_download_task(self):
|
||||
try:
|
||||
# 每天下载10组图,然后发一个帖子PDF
|
||||
download_path = meitu_dowload_pub_pic()
|
||||
path = generate_pdf_from_images(download_path)
|
||||
self.wcf.send_file(path, "45317011307@chatroom")
|
||||
|
||||
download_path = meitu_dowload_heisi_pic()
|
||||
path = generate_pdf_from_images(download_path)
|
||||
self.wcf.send_file(path, "45317011307@chatroom")
|
||||
meitu_dowload_pub_pic()
|
||||
meitu_dowload_heisi_pic()
|
||||
|
||||
except Exception as e:
|
||||
self.LOG.error(f"xiuren_dowload_pic error:{e}")
|
||||
self.LOG.error(f"xiu_ren_download_task error:{e}")
|
||||
|
||||
def xiu_ren_pdf_send(self):
|
||||
try:
|
||||
|
||||
pub_path = generate_pdf_from_images("xiuren")
|
||||
self.wcf.send_file(pub_path, "45317011307@chatroom")
|
||||
heisi_path = generate_pdf_from_images("xiuren/heisi")
|
||||
self.wcf.send_file(heisi_path, "45317011307@chatroom")
|
||||
|
||||
except Exception as e:
|
||||
self.LOG.error(f"xiu_ren_pdf_send error:{e}")
|
||||
|
||||
Reference in New Issue
Block a user