From 17d052598786503d8122879b0b8ed67c70f60d8a Mon Sep 17 00:00:00 2001 From: ngfchl Date: Thu, 20 Apr 2023 21:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E9=9A=8F=E6=9C=BA=E5=B9=BF=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index 33d9d63..57c00fa 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -126,6 +126,12 @@ class PtSpider: def send_text(self, message: str, title: str = '', url: str = None): """通知分流""" + ad = [ + 'PTools目前开发遇到困难,开发电脑性能不足,时常崩溃,欢迎赞助!', + '为补贴开发,努力卖点农副产品,自家生纯净榨核桃油,如有需要欢迎联系我!', + '广告位招租哟,欢迎投放广告!', + ] + message = f'{ad[random.randint(0, len(ad)-1)]}\n{"*" * 30}\n{message}' notifies = Notify.objects.filter(enable=True).all() res = '你还没有配置通知参数哦!' if len(notifies) <= 0: