feat(M10-A): 完成统一通知中心与投递闭环

This commit is contained in:
Codex
2026-08-11 09:17:18 +08:00
parent 41b9cf7349
commit 5d70114bab
46 changed files with 1724 additions and 74 deletions
@@ -167,6 +167,7 @@ const createConnection = new ScriptedConnection([
},
{ match: /INSERT INTO qipai_product_order_items/, result: [{ affectedRows: 1 }, []] },
{ match: /INSERT INTO qipai_product_order_events/, result: [{ affectedRows: 1 }, []] },
{ match: /INSERT IGNORE INTO qipai_outbox_events/, result: [{ insertId: 701, affectedRows: 1 }, []] },
{ match: /INSERT INTO qipai_audit_logs/, result: [{ affectedRows: 1 }, []] },
...detailSteps()
]);
@@ -222,6 +223,7 @@ const paymentConnection = new ScriptedConnection([
{ match: /UPDATE qipai_product_payments[\s\S]*SUCCEEDED/, result: [{ affectedRows: 1 }, []] },
{ match: /UPDATE qipai_product_orders[\s\S]*status = 'PAID'/, result: [{ affectedRows: 1 }, []] },
{ match: /INSERT INTO qipai_product_order_events/, result: [{ affectedRows: 1 }, []] },
{ match: /INSERT IGNORE INTO qipai_outbox_events/, result: [{ insertId: 702, affectedRows: 1 }, []] },
{ match: /UPDATE qipai_product_payment_callbacks/, result: [{ affectedRows: 1 }, []] }
]);
const paymentPool = new ScriptedPool([{
@@ -257,6 +259,7 @@ const cancelConnection = new ScriptedConnection([
{ match: /UPDATE qipai_product_orders[\s\S]*CANCELLED/, result: [{ affectedRows: 1 }, []] },
{ match: /UPDATE qipai_product_payments[\s\S]*CLOSED/, result: [{ affectedRows: 1 }, []] },
{ match: /INSERT INTO qipai_product_order_events/, result: [{ affectedRows: 1 }, []] },
{ match: /INSERT IGNORE INTO qipai_outbox_events/, result: [{ insertId: 703, affectedRows: 1 }, []] },
{ match: /INSERT INTO qipai_audit_logs/, result: [{ affectedRows: 1 }, []] },
...detailSteps(cancelledOrder)
]);