ok
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
|
||||
## 更新记录
|
||||
|
||||
version: 1.1.1:图片渲染参数优化。
|
||||
|
||||
version: 1.1.0:部分代码功能重写。
|
||||
|
||||
version: 1.0.0:大部分重要功能已经实现
|
||||
|
||||
+8
-1
@@ -61,7 +61,14 @@ class MessageBuilder:
|
||||
data = await action()
|
||||
try:
|
||||
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))
|
||||
else:
|
||||
await event.send(event.plain_result(data["msg"]))
|
||||
|
||||
@@ -15,7 +15,7 @@ from .core.message import MessageBuilder
|
||||
@register("astrbot_plugin_jx3",
|
||||
"fxdyz",
|
||||
"通过调用剑网三API接口获取游戏数据,处理发送。",
|
||||
"1.1.0",
|
||||
"1.1.1",
|
||||
"https://github.com/qsc20001102/astrbot_plugin_jx3api"
|
||||
)
|
||||
class Jx3ApiPlugin(Star):
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
name: astrbot_plugin_jx3
|
||||
display_name: 剑网三游戏数据查询工具
|
||||
desc: 通过接口调用剑网三API接口获取游戏数据,处理发送。
|
||||
version: v1.1.0
|
||||
version: v1.1.1
|
||||
author: 飞翔大野猪
|
||||
repo: https://github.com/qsc20001102/astrbot_plugin_jx3
|
||||
|
||||
Reference in New Issue
Block a user