尝试性调整渲染逻辑以规避渲染错误,可能会导致渲染速度略微降低400ms;增加迪希雅的角色图像
@ -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',
|
||||||
|
@ -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: ''
|
||||||
}
|
}
|
||||||
|
BIN
resources/character-img/卡皮塔诺/03.jpg
Normal file
After Width: | Height: | Size: 607 KiB |
BIN
resources/character-img/多莉/05.jpg
Normal file
After Width: | Height: | Size: 344 KiB |
BIN
resources/character-img/天理/01.jpg
Normal file
After Width: | Height: | Size: 304 KiB |
BIN
resources/character-img/戴因斯雷布/01.jpg
Normal file
After Width: | Height: | Size: 151 KiB |
BIN
resources/character-img/潘塔罗涅/04.jpg
Normal file
After Width: | Height: | Size: 282 KiB |
BIN
resources/character-img/潘塔罗涅/05.jpg
Normal file
After Width: | Height: | Size: 174 KiB |
Before Width: | Height: | Size: 560 KiB After Width: | Height: | Size: 184 KiB |
BIN
resources/character-img/艾尔海森/03.jpg
Normal file
After Width: | Height: | Size: 143 KiB |
BIN
resources/character-img/艾尔海森/04.jpg
Normal file
After Width: | Height: | Size: 326 KiB |
BIN
resources/character-img/艾尔海森/05.jpg
Normal file
After Width: | Height: | Size: 404 KiB |
BIN
resources/character-img/赛诺/01.jpg
Normal file
After Width: | Height: | Size: 159 KiB |
BIN
resources/character-img/迪希雅/01.jpg
Normal file
After Width: | Height: | Size: 280 KiB |
BIN
resources/character-img/迪希雅/02.jpg
Normal file
After Width: | Height: | Size: 282 KiB |
BIN
resources/character-img/迪希雅/03.jpg
Normal file
After Width: | Height: | Size: 292 KiB |
BIN
resources/character-img/迪希雅/04.jpg
Normal file
After Width: | Height: | Size: 402 KiB |
BIN
resources/character-img/迪希雅/05.jpg
Normal file
After Width: | Height: | Size: 332 KiB |