fix: show raw receipt codes in sms details
This commit is contained in:
@@ -77,7 +77,7 @@ function buildRouteRows(record: SmsMessageRecord): RouteRow[] {
|
||||
channel: submit.channel?.name ?? record.channel?.name ?? submit.channelId ?? '-',
|
||||
sentAt: submit.submittedAt ?? submit.createdAt,
|
||||
receiptAt: receipt?.deliveredAt,
|
||||
receiptCode: receipt?.rawStatus ?? receipt?.receiptStatus,
|
||||
receiptCode: receipt?.rawStatus,
|
||||
submitStatus: submit.submitStatus,
|
||||
};
|
||||
});
|
||||
@@ -89,7 +89,7 @@ function buildRouteRows(record: SmsMessageRecord): RouteRow[] {
|
||||
channel: record.channel?.name ?? record.channelId ?? '-',
|
||||
sentAt: record.submittedAt ?? record.queuedAt,
|
||||
receiptAt: record.deliveredAt,
|
||||
receiptCode: record.receiptStatus,
|
||||
receiptCode: receipts[0]?.rawStatus,
|
||||
submitStatus: record.submitStatus,
|
||||
}];
|
||||
}
|
||||
@@ -183,7 +183,7 @@ function SendDetailModal({
|
||||
</div>
|
||||
<div>
|
||||
<dt>回执码</dt>
|
||||
<dd>{route.receiptCode ?? route.submitStatus ?? '-'}</dd>
|
||||
<dd>{route.receiptCode ?? '-'}</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user