zwxi 1 жил өмнө
parent
commit
84c062bee2

+ 0 - 4
services/smart_report.go

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