koishi-plugin-booth-get 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/card-generator.js +2 -2
- package/package.json +1 -1
package/lib/card-generator.js
CHANGED
|
@@ -532,10 +532,10 @@ generateDiscountCardHTML(item) {
|
|
|
532
532
|
|
|
533
533
|
await page.setContent(html, {
|
|
534
534
|
waitUntil: 'networkidle0',
|
|
535
|
-
timeout: config.loadTimeout
|
|
535
|
+
timeout: config.loadTimeout || 30000
|
|
536
536
|
});
|
|
537
537
|
|
|
538
|
-
await new Promise(resolve => setTimeout(resolve,
|
|
538
|
+
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
539
539
|
|
|
540
540
|
await page.setViewport({ width: 640, height: 1200 });
|
|
541
541
|
const container = await page.$('.container') || await page.$('body');
|