Dockerfile 部署

This commit is contained in:
hjq
2026-06-12 16:51:03 +08:00
parent 6216548971
commit 59a6571707
4 changed files with 18 additions and 2 deletions

View File

@@ -98,6 +98,13 @@ def fetch_issue_receipt_incremental():
page = get_page(port=9222)
try:
# 如果是首次打开浏览器(没有保持登录状态),先调用 login
from login import login
log("INFO", "检查登录状态并执行登录...")
if not login(page):
log("ERR", "登录 ERP 系统失败,中止抓取。")
return
log("INFO", f"正在直接跳转到发料单明细页面...")
page.get("https://yunmes.tftykj.cn/WorkOrdersQuery")
page.wait.load_start()