From 2d08ef340e108432fdcb82995a7cdec6b906729a Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 30 Aug 2022 17:02:16 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=9B=A0=E4=B8=BA=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E6=8E=A5=E6=94=B6=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E4=B8=8D=E6=94=AF=E6=8C=81markdown=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E6=95=85=E6=94=B9=E4=B8=BAtext=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E5=8F=91=E9=80=81=EF=BC=8C=E5=8F=AF=E8=83=BD=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=9C=AAmarkdown=E6=BA=90=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 2 +- .idea/ptools.iml | 2 +- pt_site/UtilityTool.py | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 5ae3a3c..650ef91 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/.idea/ptools.iml b/.idea/ptools.iml index 8114c7e..261fb4d 100644 --- a/.idea/ptools.iml +++ b/.idea/ptools.iml @@ -17,7 +17,7 @@ - + diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index f7d8852..3b3c483 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -118,7 +118,10 @@ class PtSpider: corp_id=notify.corpid, secret=notify.corpsecret, agent_id=notify.agentid, ) - res = notify_push.send_markdown(text) + res = notify_push.send_text( + text=text, + to_uid=notify.touser if notify.touser else '@all' + ) print(res)