html逻辑优化

This commit is contained in:
Jimmy
2026-05-25 16:32:53 +08:00
parent 031ec4d289
commit 66eecd0daa
6 changed files with 212 additions and 53 deletions

View File

@@ -9,6 +9,7 @@
import sys
import json
import time
import subprocess
import math
import random
import sqlite3
@@ -216,7 +217,7 @@ def fetch_receipt_details_incremental():
total_inserted += 1
conn.commit()
log("OK", f"{current_page} 页处理完毕,成功入库 {inserted_this_page}数据。")
log("OK", f"{current_page} 页处理完毕,成功截获 {inserted_this_page}数据并存入数据")
# 还有下一页则继续点击
if current_page < end_page:
@@ -250,8 +251,8 @@ def fetch_receipt_details_incremental():
current_page += 1
log("OK", f"🎉 增量同步大功告成!总计入库 {total_inserted} 条全新数据")
log("OK", f"🎉 增量同步大功告成!总计向数据库执行了 {total_inserted} 次插入/更新操作")
except Exception as e:
log("ERR", f"发生全局异常: {e}")
finally: