From 7ae5a68ab16faa65eaca1b3331387f765eab7737 Mon Sep 17 00:00:00 2001 From: hjq <770690987@qq.com> Date: Fri, 12 Jun 2026 17:07:32 +0800 Subject: [PATCH] =?UTF-8?q?Dockerfile=20=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- browser_login/fetch_issue_receipt_incremental.py | 3 ++- browser_login/fetch_receipt_details_incremental.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/browser_login/fetch_issue_receipt_incremental.py b/browser_login/fetch_issue_receipt_incremental.py index 9bf612e..3ddc1ee 100644 --- a/browser_login/fetch_issue_receipt_incremental.py +++ b/browser_login/fetch_issue_receipt_incremental.py @@ -95,7 +95,8 @@ def fetch_issue_receipt_incremental(): local_count = get_local_count(conn) log("INFO", f"📦 本地数据库当前总计: {local_count} 条数据") - page = get_page(port=9222) + # 强制不传 port 参数,使用 login.py 里的默认值,以触发 Docker 环境下的 auto_port 逻辑 + page = get_page() try: # 如果是首次打开浏览器(没有保持登录状态),先调用 login diff --git a/browser_login/fetch_receipt_details_incremental.py b/browser_login/fetch_receipt_details_incremental.py index 09492f8..6ffd70d 100644 --- a/browser_login/fetch_receipt_details_incremental.py +++ b/browser_login/fetch_receipt_details_incremental.py @@ -53,7 +53,8 @@ def fetch_receipt_details_incremental(): local_count = get_local_count(conn) log("INFO", f"📦 本地数据库当前总计: {local_count} 条数据") - page = get_page(port=9222) + # 强制不传 port 参数,使用 login.py 里的默认值,以触发 Docker 环境下的 auto_port 逻辑 + page = get_page() try: # 如果是首次打开浏览器(没有保持登录状态),先调用 login