尝试性调整渲染逻辑以规避渲染错误,可能会导致渲染速度略微降低400ms;增加迪希雅的角色图像

This commit is contained in:
yoimiya-kokomi 2022-09-14 04:10:07 +08:00
parent 1477d7e9c2
commit 2ab90de918
18 changed files with 7 additions and 5 deletions

View File

@ -115,11 +115,10 @@ class Puppeteer {
const page = await this.browser.newPage() const page = await this.browser.newPage()
page.setCacheEnabled(true) page.setCacheEnabled(true)
await page.goto(`file://${_path}${lodash.trim(savePath, '.')}`, { await page.goto(`file://${_path}${lodash.trim(savePath, '.')}`, {
waitUntil: 'domcontentloaded' waitUntil: 'networkidle0'
}) })
let body = await page.$('#container') || await page.$('body') let body = await page.$('#container') || await page.$('body')
await page.waitForSelector('#container') await page.waitForSelector('#container')
await page.waitForTimeout(100)
let randData = { let randData = {
// encoding: 'base64', // encoding: 'base64',
type: data.imgType || 'jpeg', type: data.imgType || 'jpeg',

View File

@ -85,15 +85,18 @@ export const characters = {
gongji: ['普契涅拉', '公鸡', '鸽子'], gongji: ['普契涅拉', '公鸡', '鸽子'],
duizhang: ['卡皮塔诺', '队长'], duizhang: ['卡皮塔诺', '队长'],
nahida: ['纳西妲', '草神', '小吉祥', '小吉祥草王', '花神', '草萝莉'], nahida: ['纳西妲', '草神', '小吉祥', '小吉祥草王', '花神', '草萝莉'],
alhaitham: ['艾尔海森', '海哥', '埃尔海森'] alhaitham: ['艾尔海森', '海哥', '埃尔海森'],
dixiya: ['迪希雅'],
daiyin: ['戴因斯雷布', '戴因', '男派蒙'],
tianli: ['天理']
} }
export const wifeData = { export const wifeData = {
girlfriend: `琴, 丽莎, 荧, 芭芭拉, 安柏, 香菱, 北斗, 凝光, 菲谢尔, 诺艾尔, 甘雨, 莫娜, 刻晴, 砂糖, 辛焱, 罗莎莉亚, 胡桃, girlfriend: `琴, 丽莎, 荧, 芭芭拉, 安柏, 香菱, 北斗, 凝光, 菲谢尔, 诺艾尔, 甘雨, 莫娜, 刻晴, 砂糖, 辛焱, 罗莎莉亚, 胡桃,
烟绯, 优菈, 神里绫华, 宵宫, 雷电将军, 珊瑚宫心海, 九条裟罗, 八重神子, 埃洛伊, 申鹤, 云堇, 夜兰, 久岐忍, 柯莱, 多莉, 伐难, 烟绯, 优菈, 神里绫华, 宵宫, 雷电将军, 珊瑚宫心海, 九条裟罗, 八重神子, 埃洛伊, 申鹤, 云堇, 夜兰, 久岐忍, 柯莱, 多莉, 伐难,
女士, 萍姥姥, 柯莱, 多莉, 仆人, 少女, 妮露,坎蒂丝`, 女士, 萍姥姥, 柯莱, 多莉, 仆人, 少女, 妮露, 坎蒂丝, 天理迪希雅`,
boyfriend: `空, 凯亚, 迪卢克, 雷泽, 温迪, 行秋, 魈, 钟离, 班尼特, 达达利亚, 重云, 阿贝多, 枫原万叶, 托马, 五郎, 荒泷一斗, boyfriend: `空, 凯亚, 迪卢克, 雷泽, 温迪, 行秋, 魈, 钟离, 班尼特, 达达利亚, 重云, 阿贝多, 枫原万叶, 托马, 五郎, 荒泷一斗,
鹿野院平藏, 神里绫人, 提纳里, 散兵, 白术, 提纳里, 富人, 博士, 丑角, 公鸡, 队长,赛诺`, 鹿野院平藏, 神里绫人, 提纳里, 散兵, 白术, 提纳里, 富人, 博士, 丑角, 公鸡, 队长, 赛诺, 戴因`,
daughter: '可莉, 七七, 迪奥娜, 早柚, 派蒙, 瑶瑶, 纳西妲', daughter: '可莉, 七七, 迪奥娜, 早柚, 派蒙, 瑶瑶, 纳西妲',
son: '' son: ''
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 KiB

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB