京东设置
This commit is contained in:
@@ -4,7 +4,7 @@ command = ["设置京东"]
|
|||||||
command-format = """
|
command-format = """
|
||||||
🔑京东签到Token设置指令:
|
🔑京东签到Token设置指令:
|
||||||
设置京东 token内容 备注名称
|
设置京东 token内容 备注名称
|
||||||
token内容示例:pt_key=xxx; pt_pin=xxx;
|
token内容示例:pt_key=xxx;pt_pin=xxx;(中间不要加空格)
|
||||||
通过m.jd.com登录,F12查看请求中的cookie获得
|
通过m.jd.com登录,F12查看请求中的cookie获得
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ class JDTokenPlugin(MessagePluginInterface):
|
|||||||
# 简单预检查token格式
|
# 简单预检查token格式
|
||||||
if not token.startswith("pt_key=") or "pt_pin=" not in token:
|
if not token.startswith("pt_key=") or "pt_pin=" not in token:
|
||||||
await bot.send_text_message((roomid if roomid else sender),
|
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)
|
sender)
|
||||||
return False, "Token格式错误"
|
return False, "Token格式错误"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user