通知系统-1

This commit is contained in:
yml2213
2026-05-14 17:29:12 +08:00
parent 91d74b3e59
commit b6c493d5e7
22 changed files with 1314 additions and 11 deletions
@@ -5,6 +5,7 @@ import {
buildOpen91SourceEvent,
upsertOpen91PendingOrder,
} from '../platforms/ninetyone/order-service.js'
import { notifyOpen91PendingConfig } from '../notification/domain-notifications.js'
import {
assertOpen91Config,
assertOpen91CreatePayload,
@@ -64,6 +65,14 @@ export async function createOpen91Order(payload = {}, { requestId = '' } = {}) {
orderId: pending.order?.id || null,
})
await notifyOpen91PendingConfig({
order: pending.order,
orderNo: normalized.orderNo,
productNo: normalized.productNo,
buyNum: normalized.buyNum,
reason: result.ignoreReason || '未命中履约配置',
})
return buildOpen91SuccessResponse({
orderNo: normalized.orderNo,
outTradeNo: buildOpen91OutTradeNo(pending.order),