mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix: render
This commit is contained in:
parent
ad0e156fd1
commit
8fd570a442
1 changed files with 4 additions and 6 deletions
|
|
@ -115,12 +115,10 @@ export class Panel extends ZZZPlugin {
|
|||
uid: uid,
|
||||
charData: data,
|
||||
};
|
||||
|
||||
const res = await this.reply(
|
||||
render(this.e, 'panel/card.html', finalData, {
|
||||
retType: 'base64',
|
||||
})
|
||||
);
|
||||
const image = await render(this.e, 'panel/card.html', finalData, {
|
||||
retType: 'base64',
|
||||
});
|
||||
const res = await this.reply(image);
|
||||
if (res?.message_id)
|
||||
await redis.set(`ZZZ:PANEL:IMAGE:${res.message_id}`, data.role_icon, {
|
||||
EX: 3600 * 3,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue