mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-21 20:38:01 +00:00
jd_cmd 更新 api 接口
This commit is contained in:
parent
1001750f77
commit
8729770e47
@ -14,7 +14,7 @@ async def jd_cmd(context):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
return await context.edit("[jd_cmd] " + lang("msg_ValueError"))
|
return await context.edit("[jd_cmd] " + lang("msg_ValueError"))
|
||||||
try:
|
try:
|
||||||
data = (await client.post("https://api.jds.codes/jCommand", json={"code": text})).json()
|
data = (await client.post("https://api.jds.codes/jd/jCommand", json={"code": text})).json()
|
||||||
except:
|
except:
|
||||||
return await context.edit("[jd_cmd] 网络错误!")
|
return await context.edit("[jd_cmd] 网络错误!")
|
||||||
if data["code"] != 200:
|
if data["code"] != 200:
|
||||||
|
Loading…
Reference in New Issue
Block a user