diff --git a/image/main.ts b/image/main.ts index 8c00547..596f033 100644 --- a/image/main.ts +++ b/image/main.ts @@ -61,4 +61,5 @@ app.use(router.routes()) // listen 8000 app.listen(Port, () => { console.log('Server is running on port ' + Port) + console.log('自行调整BOT浏览器尺寸 753 X 1180') }) diff --git a/src/core/plugins/index.ts b/src/core/plugins/index.ts index b8edc5d..c8fbc88 100644 --- a/src/core/plugins/index.ts +++ b/src/core/plugins/index.ts @@ -257,12 +257,11 @@ export class Plugin { * @param cfg * @returns */ - async renderImg(plugin, tpl, data, cfg) { + async renderImg(plugin, tpl, data, cfg = {}) { return Common.render(plugin, tpl, data, { ...cfg, e: this.e }) } } - /** * @deprecated 已废弃 */ diff --git a/src/utils/puppeteer.ts b/src/utils/puppeteer.ts index 2d89d19..766259c 100644 --- a/src/utils/puppeteer.ts +++ b/src/utils/puppeteer.ts @@ -21,12 +21,7 @@ export const PuppeteerLunchConfig = new BaseConfig({ '--no-zygote', '--single-process' ] - // 设置浏览器默认尺寸 - // defaultViewport: { - // width: 1280, - // height: 853, - // isMobile: true - // } + // BOT浏览器默认尺寸 753 X 1180 }) /**