Commit Graph
11 Commits
Author SHA1 Message Date
yml2213 7fc3d60588 新增 affiliate_dash 回调路由与幂等去重(阶段 5)
- POST /api/v1/open/affiliate-dash:验签 → 查任务(404 重试) → webhook_events 幂等闸门 → 状态同步
- migration 013:webhook_events(provider+event_id 唯一)
- task-repo findAffiliateDashTaskByOrder(仿 feifei 同构 SQL)
- notify-service:去重闸门在找到任务之后,任务未匹配不被 eventId 永久拦截
- typecheck + 212 测试通过;前置错误分支脚本验证通过
2026-08-05 16:07:33 +08:00
yml2213 a2587eda01 完善接单平台上传与物品规则 2026-07-25 15:56:18 +08:00
yml2213 f6d3f00f21 新增接单平台第一期闭环 2026-07-25 13:58:53 +08:00
yml2213 58a902dd3b 增加飞飞领取短链 2026-07-07 21:13:37 +08:00
yml2213 c2c168f18e feifei 异步通知 2026-07-07 17:09:55 +08:00
yml2213 693f4de45a 通知商家发码-ok 2026-06-30 15:57:58 +08:00
yml e7aa194dde 删除咸鱼旧链路 2026-05-25 21:46:39 +08:00
yml ecab6ae9b7 feat: complete CORS config-driven middleware rewrite
- cors.ts: createCorsMiddleware factory with RuntimeConfig param
  - Wildcard ['*'] mode: Access-Control-Allow-Origin: * (backward compatible)
  - Specific origins mode: reflect matching origin + Allow-Credentials
  - Added Access-Control-Max-Age: 86400 for preflight caching
- app.ts: accept config param, use createCorsMiddleware(config)
- index.ts: pass runtimeConfig to createApp
- env-overrides.ts: add string[] to RuntimeConfigValue, corsOriginsEnv helper
- runtime-config.ts: cors.allowedOrigins: string[] type
- defaults.ts: cors.allowedOrigins: ['*'] default
- .env: CORS_ALLOWED_ORIGINS=* with production example
2026-05-21 23:22:39 +08:00
yml 0e6bf88beb [Snow Team] express-types: auto-commit work 2026-05-21 22:57:48 +08:00
yml 5a5bcea904 [Snow Team] core-infra: auto-commit work 2026-05-21 22:23:08 +08:00
yml efa41ba976 refactor backend route and fulfillment modules 2026-05-21 18:38:04 +08:00