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