区服接口调整
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
## 更新记录
|
||||
|
||||
### version: 3.2.3:
|
||||
|
||||
API区服接口功能调整,做对应调整
|
||||
|
||||
### version: 3.2.2:
|
||||
|
||||
调整部分功能指令的描述
|
||||
|
||||
@@ -10,9 +10,6 @@
|
||||
|
||||
`astrbot_plugin_jx3` 通过 JX3API、剑侠茶馆、JX3BOX 等数据源查询《剑网3》游戏数据,并根据功能将结果发送为纯文本、图片、图文消息或两轮交互消息。插件同时提供本地避雷记录和开服、新闻、刷马、赤兔后台推送能力。
|
||||
|
||||
当前仓库版本为 **v3.2.1**,要求 **AstrBot >= 4.11.0**,元数据声明支持 `aiocqhttp` 与 `weixin_oc` 平台。
|
||||
|
||||
> 本 README 以 v3.2.1 的 `main.py` 指令映射、`core/message.py` 参数签名和三个数据服务的实际实现为准。当前代码与内置帮助图之间存在少量差异,详见[当前版本状态](#当前版本状态)。
|
||||
|
||||
## 功能特点
|
||||
|
||||
|
||||
+4
-6
@@ -1611,7 +1611,7 @@ class JX3APIService:
|
||||
|
||||
return await self._request_api(
|
||||
path="/server/status/check",
|
||||
params= {"server": server},
|
||||
params= {"server": server, "type": "其他"},
|
||||
processor=processor,
|
||||
template="qufuzhuangtai.html"
|
||||
)
|
||||
@@ -1620,10 +1620,8 @@ class JX3APIService:
|
||||
async def kaifu(self, server: str) -> Dict[str, Any]:
|
||||
"""开服状态查询"""
|
||||
async def processor(data: Any, return_data: Dict[str, Any]) -> None:
|
||||
if not data.get("status") == "维护" :
|
||||
status = 1
|
||||
else:
|
||||
status = 0
|
||||
list_data = data[0]
|
||||
status = list_data.get("status")
|
||||
|
||||
if status == 1:
|
||||
status_str = f"{server}服务器已开服,快冲,快冲!"
|
||||
@@ -1637,7 +1635,7 @@ class JX3APIService:
|
||||
|
||||
return await self._request_api(
|
||||
path="/server/status/check",
|
||||
params= {"server": server},
|
||||
params= {"server": server, "type": 1},
|
||||
processor=processor,
|
||||
template="qufuzhuangtai.html"
|
||||
)
|
||||
|
||||
@@ -19,7 +19,7 @@ from .core.fun_basic import load_as_base64
|
||||
@register("astrbot_plugin_jx3",
|
||||
"fxdyz",
|
||||
"聚合剑网三游戏数据,提供查询、图片渲染、本地避雷和后台推送。",
|
||||
"3.2.2",
|
||||
"3.2.3",
|
||||
"https://github.com/qsc20001102/astrbot_plugin_jx3"
|
||||
)
|
||||
class Jx3ApiPlugin(Star):
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
name: astrbot_plugin_jx3
|
||||
display_name: 剑网三游戏数据查询工具
|
||||
desc: 聚合剑网三游戏数据,提供查询、图片渲染、本地避雷和后台推送。
|
||||
version: 3.2.2
|
||||
version: 3.2.3
|
||||
author: 飞翔大野猪
|
||||
repo: https://github.com/qsc20001102/astrbot_plugin_jx3
|
||||
astrbot_version: ">=4.11.0"
|
||||
|
||||
Reference in New Issue
Block a user