10 Commits
Author SHA1 Message Date
yeuimu 4a7c44a354 feat: RIIN 商品拉取改用 goods/list 批量接口(200/批串行)替换逐单 order/goods
CI / test (pull_request) Successful in 1m11s
- api/riin/client.py: 新增 get_order_goods_batch(distribution/order/goods/list)
- flows/shared/clients.py: fetch_goods_concurrent → fetch_goods_for_orders,
  批量 200/批、串行、批间 2s,批级重试;移除逐单全局限速(340~500ms)机制
- flows/riin/_pipeline.py: 适配新批量拉取
- flows/shared/db.py: 存在性预查 unnest cast timestamp[] → timestamptz[]
  (入参为带时区偏移的 tz-aware datetime,timestamptz 才能稳定匹配)

背景:旧逐单接口高频被软限流(成功返回空 data),10-28 起日均缺口 13~33%;
批量接口调用量从日均 ~1 万次降到 ~50 次,已实测回补 7689 单/9717 条商品全量成功。
2026-10-31 10:01:50 +00:00
yeuimu fdcf107993 feat: OCR 新增支持波兰(PL,版式 pables_dpd/pables_inpost)
CI / test (pull_request) Successful in 2m49s
2026-10-15 03:12:21 +00:00
yeuimu 2259bce7c4 feat: OCR 新增支持西班牙/意大利/加拿大(ES/IT/CA)
CI / test (pull_request) Failing after 1s
- api/ocr/models.py: SUPPORTED_COUNTRIES/_COUNTRY_MAP 补 CA/ES/IT 的 ISO 码与中文国名
- flows/label_ocr.py: label-ocr 默认国家列表扩为 8 国,docstring 同步
2026-09-24 03:49:46 +00:00
yeuimu 2128f17868 feat: OCR 新增沙特(SA)支持; 默认加入沙特 2026-08-05 07:48:56 +00:00
yeuimu 72039e480b fix: PL 从 OCR 支持国家移除(模型未注册 config.py) 2026-07-24 01:26:47 +00:00
yeuimu 70178e9295 feat: OCR v2 batch + RIIN waybill + 双系统 label-ocr flow(hourly) 2026-07-23 23:44:24 +00:00
yeuimu 51dbde4538 feat: OCR 面单 enrichment flow (api/ocr/ + flows/sds/label_ocr.py + db OCR 方法) 2026-07-23 16:15:24 +00:00
yeuimu 8ab0aededa feat: Orders 加 10 地址/店铺字段 + labelPdfUrl(SDS/RIIN mapper+db) 2026-07-23 16:05:46 +00:00
yeuimu a527ebc1de fix: SDS factory(dict取值)+ confirmedAt(gmtConfirmTime) 映射修复 2026-07-23 09:41:08 +00:00
yeuimu 4cba1da4e1 init: Prefect ETL sync project (RIIN/SDS → PG) with 12 sync flows 2026-07-23 08:13:09 +00:00