This commit is contained in:
qsc
2026-02-20 12:31:57 +08:00
parent 9c6f6f2151
commit 208426a9e8
4 changed files with 12 additions and 3 deletions
+2
View File
@@ -13,6 +13,8 @@
## 更新记录 ## 更新记录
version: 1.1.1:图片渲染参数优化。
version: 1.1.0:部分代码功能重写。 version: 1.1.0:部分代码功能重写。
version: 1.0.0:大部分重要功能已经实现 version: 1.0.0:大部分重要功能已经实现
+8 -1
View File
@@ -61,7 +61,14 @@ class MessageBuilder:
data = await action() data = await action()
try: try:
if data["code"] == 200: if data["code"] == 200:
url = await self.html_render(data["temp"], data["data"], options={}) options = {
"quality": 100,
"device_scale_factor_level": "normal",
"full_page": True,
"omit_background": False,
"type": "jpeg"
}
url = await self.html_render(data["temp"], data["data"], options=options)
await event.send(event.image_result(url)) await event.send(event.image_result(url))
else: else:
await event.send(event.plain_result(data["msg"])) await event.send(event.plain_result(data["msg"]))
+1 -1
View File
@@ -15,7 +15,7 @@ from .core.message import MessageBuilder
@register("astrbot_plugin_jx3", @register("astrbot_plugin_jx3",
"fxdyz", "fxdyz",
"通过调用剑网三API接口获取游戏数据,处理发送。", "通过调用剑网三API接口获取游戏数据,处理发送。",
"1.1.0", "1.1.1",
"https://github.com/qsc20001102/astrbot_plugin_jx3api" "https://github.com/qsc20001102/astrbot_plugin_jx3api"
) )
class Jx3ApiPlugin(Star): class Jx3ApiPlugin(Star):
+1 -1
View File
@@ -1,6 +1,6 @@
name: astrbot_plugin_jx3 name: astrbot_plugin_jx3
display_name: 剑网三游戏数据查询工具 display_name: 剑网三游戏数据查询工具
desc: 通过接口调用剑网三API接口获取游戏数据,处理发送。 desc: 通过接口调用剑网三API接口获取游戏数据,处理发送。
version: v1.1.0 version: v1.1.1
author: 飞翔大野猪 author: 飞翔大野猪
repo: https://github.com/qsc20001102/astrbot_plugin_jx3 repo: https://github.com/qsc20001102/astrbot_plugin_jx3