设置成功之后,发送一个钉钉的监控群信息

This commit is contained in:
liuwei
2026-01-14 11:49:29 +08:00
parent dc7f849361
commit 20624f39e1
2 changed files with 10 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
import os
import re import re
from pathlib import Path
from typing import Optional, List, Dict, Any from typing import Optional, List, Dict, Any
from typing import Tuple from typing import Tuple
@@ -310,6 +312,14 @@ class JDTokenPlugin(MessagePluginInterface):
# 设置京东Token # 设置京东Token
result = await self.set_jd_token(token, remark) result = await self.set_jd_token(token, remark)
await bot.send_text_message((roomid if roomid else sender), result, sender) await bot.send_text_message((roomid if roomid else sender), result, sender)
# 发送二维码图片
qrcode_path = Path(os.path.join(os.path.dirname(os.path.abspath(__file__)), "qrcode.png"))
if qrcode_path.exists():
await bot.send_image_message((roomid if roomid else sender), qrcode_path)
else:
self.LOG.warning(f"二维码图片不存在: {qrcode_path}")
return True, "处理成功" return True, "处理成功"
except Exception as e: except Exception as e:

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB