zwxi 11 kuukautta sitten
vanhempi
commit
636be4ae52
1 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  1. 8 1
      services/smart_report.go

+ 8 - 1
services/smart_report.go

@@ -154,6 +154,10 @@ def main():
         'waitUntil': 'networkidle0',
         'timeout': 1000000  # 设置超时时间为 100
     })
+	
+	# 等待3
+    yield from asyncio.sleep(3)
+	
     yield from page.pdf({
         'path': "%s",
         'printBackground': True,
@@ -223,7 +227,10 @@ async def main():
             'waitUntil': 'networkidle0',
             'timeout': 1000000  # 设置超时时间为 100
         })
-        
+		
+		# 等待3
+    	yield from asyncio.sleep(3)
+
         # 截取全页面的屏幕截图
         await page.screenshot({
             'path': "%s",