diff --git a/apps/Jrys.js b/apps/Jrys.js index 6aa352ac2dba460db4629588f63ff55c50624710..1f0c1e5bdadafb661ed252c306c54510e38467be 100644 --- a/apps/Jrys.js +++ b/apps/Jrys.js @@ -116,32 +116,90 @@ async function generateFortune (e) { let Html = ` - + -
-

${nickname}的${await numToChinese(new Date().getDate())}号运势为

-

${fortune.fortuneSummary}

-

${fortune.luckyStar}

-
-

${fortune.signText}

-

${fortune.unsignText}

+ +
+
+

${nickname}的${await numToChinese(new Date().getDate())}号运势为

+

${fortune.fortuneSummary}

+

${fortune.luckyStar}

+
+

${fortune.signText}

+

${fortune.unsignText}

+
+

| 相信科学,请勿迷信 |

+

Create By 鸢尾花插件

+
+
+ +
-

| 相信科学,请勿迷信 |

-

Create By 鸢尾花插件

-
-
- -
+ ` @@ -150,6 +208,8 @@ async function generateFortune (e) { browser = await puppeteer.launch({ headless: 'new', args: ['--no-sandbox', '--disable-setuid-sandbox'] }) const page = await browser.newPage() await page.setContent(Html) + // 增加等待时间,确保图片加载完成 + await page.waitForSelector('img') const image = Buffer.from(await page.screenshot({ fullPage: true })) e.reply(segment.image(image)) } catch (error) {