OK
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
## 更新记录
|
## 更新记录
|
||||||
|
|
||||||
|
### version: 1.2.2:
|
||||||
|
|
||||||
|
调整角色名片查询功能。
|
||||||
|
|
||||||
### version: 1.2.1:
|
### version: 1.2.1:
|
||||||
|
|
||||||
调整角色名片查询功能。
|
调整角色名片查询功能。
|
||||||
|
|||||||
+3
-8
@@ -840,9 +840,9 @@ class JX3Service:
|
|||||||
for m in data:
|
for m in data:
|
||||||
msg = f"第{m.get('showIndex')}张 "
|
msg = f"第{m.get('showIndex')}张 "
|
||||||
if m.get('showActive'):
|
if m.get('showActive'):
|
||||||
msg += "未启用"
|
|
||||||
else:
|
|
||||||
msg += "已启用"
|
msg += "已启用"
|
||||||
|
else:
|
||||||
|
msg += "未启用"
|
||||||
list_msg.append(msg)
|
list_msg.append(msg)
|
||||||
list_url.append(m.get('showAvatar'))
|
list_url.append(m.get('showAvatar'))
|
||||||
|
|
||||||
@@ -1035,13 +1035,8 @@ class JX3Service:
|
|||||||
logger.info("战绩获取完成")
|
logger.info("战绩获取完成")
|
||||||
|
|
||||||
# 角色名片获取
|
# 角色名片获取
|
||||||
datamp = await self.jueshemingpian(server,name)
|
|
||||||
if datamp["code"] == 200:
|
|
||||||
data["showAvatar"] = datamp['data']
|
|
||||||
logger.info("名片获取完成")
|
|
||||||
else:
|
|
||||||
data["showAvatar"] = ""
|
data["showAvatar"] = ""
|
||||||
logger.info("名片获取失败")
|
|
||||||
|
|
||||||
# 4. 加载模板
|
# 4. 加载模板
|
||||||
try:
|
try:
|
||||||
|
|||||||
+1
-1
@@ -176,7 +176,7 @@ class MessageBuilder:
|
|||||||
except TimeoutError:
|
except TimeoutError:
|
||||||
await event.send(event.plain_result("选择超时,已结束会话"))
|
await event.send(event.plain_result("选择超时,已结束会话"))
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.error("宏选择发生异常", exc_info=True)
|
logger.error("选择发生异常", exc_info=True)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
await event.send(event.plain_result(f"未搜索到相关内容"))
|
await event.send(event.plain_result(f"未搜索到相关内容"))
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ from .core.fun_basic import load_as_base64
|
|||||||
@register("astrbot_plugin_jx3",
|
@register("astrbot_plugin_jx3",
|
||||||
"fxdyz",
|
"fxdyz",
|
||||||
"通过调用剑网三API接口获取游戏数据,处理发送。",
|
"通过调用剑网三API接口获取游戏数据,处理发送。",
|
||||||
"1.2.1",
|
"1.2.2",
|
||||||
"https://github.com/qsc20001102/astrbot_plugin_jx3api"
|
"https://github.com/qsc20001102/astrbot_plugin_jx3api"
|
||||||
)
|
)
|
||||||
class Jx3ApiPlugin(Star):
|
class Jx3ApiPlugin(Star):
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name: astrbot_plugin_jx3
|
name: astrbot_plugin_jx3
|
||||||
display_name: 剑网三游戏数据查询工具
|
display_name: 剑网三游戏数据查询工具
|
||||||
desc: 通过接口调用剑网三API接口获取游戏数据,处理发送。
|
desc: 通过接口调用剑网三API接口获取游戏数据,处理发送。
|
||||||
version: v1.2.1
|
version: v1.2.2
|
||||||
author: 飞翔大野猪
|
author: 飞翔大野猪
|
||||||
repo: https://github.com/qsc20001102/astrbot_plugin_jx3
|
repo: https://github.com/qsc20001102/astrbot_plugin_jx3
|
||||||
|
|||||||
Reference in New Issue
Block a user