orc-order-v2/config.ini
houhuan b7bce93995 refactor: 重构文件读取和日志处理以提升性能和稳定性
- 新增 smart_read_excel 工具函数,统一 Excel 读取逻辑并自动选择引擎
- 重构 ConfigManager.get_path 方法,使用 pathlib 提升路径处理可靠性
- 将 GUI 日志处理改为异步队列模式,避免 UI 阻塞
- 优化 ExcelProcessor 的表头识别逻辑,避免重复读取文件
- 更新配置文件中的版本号
2026-03-30 11:17:25 +08:00

31 lines
633 B
INI

[API]
api_key = O0Fgk3o69RWJ86eAX8BTHRaB
secret_key = VyZD5lzcIMgsup1uuD6Cw0pfzS20IGPZ
timeout = 30
max_retries = 3
retry_delay = 2
api_url = https://aip.baidubce.com/rest/2.0/ocr/v1/table
[Paths]
input_folder = data/input
output_folder = data/output
temp_folder = data/temp
template_folder = E:\2025Code\python\orc-order-v2\templates
processed_record = data/processed_files.json
[Performance]
max_workers = 4
batch_size = 5
skip_existing = true
[File]
allowed_extensions = .jpg,.jpeg,.png,.bmp
excel_extension = .xlsx
max_file_size_mb = 4
[Templates]
purchase_order = 银豹-采购单模板.xls
[App]
version = 2026.03.30.1036