京东设置

This commit is contained in:
liuwei
2025-05-15 11:53:46 +08:00
parent 7024e681c7
commit 53978ee729
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ command = ["设置京东"]
command-format = """
🔑京东签到Token设置指令
设置京东 token内容 备注名称
token内容示例pt_key=xxx; pt_pin=xxx;
token内容示例pt_key=xxx;pt_pin=xxx;(中间不要加空格)
通过m.jd.com登录F12查看请求中的cookie获得
"""

View File

@@ -223,7 +223,7 @@ class JDTokenPlugin(MessagePluginInterface):
# 简单预检查token格式
if not token.startswith("pt_key=") or "pt_pin=" not in token:
await bot.send_text_message((roomid if roomid else sender),
f"❌ Token格式错误正确格式应为pt_key=xxx; pt_pin=xxx;",
f"❌ Token格式错误正确格式应为pt_key=xxx;pt_pin=xxx;",
sender)
return False, "Token格式错误"