liufumingren
a15c877f04
fix(order): API 渠道订单同步改为先回传确认、成功后再扣减库存
- 删除 notifyApiDeliveryOrderConfirmsInternal(原「同步完成后 fire-and-forget
逐单回调、失败仅 warn」),新增 processApiOrderInternal 在同一个分发循环内逐单
处理:组装 deliveryorder.confirm 报文 → 解析发送用 appKey → sendByAppKey
(最多 4 次尝试)→ 回调成功才扣减库存并置 sync_status='fin'
- 新增 markApiSyncFailedInternal:回调失败/异常、报文组装配不上货主编码、
解析不到 appKey 等一律置 sync_status='error' + 待处理异常,不扣减库存、不置
fin,订单可重新派发(分发前过滤仅跳过 fin)
- 解析不到 appKey 的订单不再静默跳过,改为按失败处理
- 同步 docs/openapi-callback-events.md、methods/openapi_callback.json 与
methods/changes/openapi_callback.json
2026-09-15 16:18:32 +08:00
..
2026-09-13 02:24:37 +08:00
2026-09-05 22:42:39 +08:00
2026-05-06 01:32:55 +08:00
2026-09-15 15:31:43 +08:00
2026-09-15 16:03:29 +08:00
2026-09-13 15:30:55 +08:00
2026-09-15 16:18:32 +08:00
2026-05-22 08:39:07 +08:00
2026-09-13 02:24:37 +08:00