可以接收到咸鱼的订单创建连接

This commit is contained in:
yml
2026-04-08 23:20:21 +08:00
parent a2b09c89e8
commit c2ec3aa6d2
10 changed files with 608 additions and 64 deletions
@@ -11,6 +11,7 @@ import { findTaskByClaimTokenId, updateTask } from '../repositories/task-repo.js
import { getCdkById, markCdkDelivered, releaseReservedCdk } from '../repositories/cdk-repo.js'
import { buildClaimUrl } from './claim-service.js'
import { createHttpError } from '../utils/http.js'
import { formatFenToAmount, normalizeFen } from '../utils/money.js'
import { nowIso } from '../utils/time.js'
const CLAIM_TERMINAL_STATUSES = new Set(['expired', 'closed'])
@@ -385,7 +386,8 @@ function buildClaimDetailPayload({ claimToken, task, order, orderItem, session }
platformOrderId: order.platform_order_id,
payStatus: order.pay_status,
orderStatus: order.order_status,
totalAmount: order.total_amount,
totalAmount: formatFenToAmount(order.total_amount),
totalAmountFen: normalizeFen(order.total_amount),
currency: order.currency,
},
orderItem: {