fix: persist sms carrier and province

This commit is contained in:
hectorzhao
2026-07-11 21:55:25 +08:00
parent 37048a4c9a
commit 7b8424d9bc
8 changed files with 76 additions and 12 deletions
+7 -3
View File
@@ -143,8 +143,8 @@ function downloadCsv(records: SmsMessageRecord[]) {
record.application?.name ?? record.applicationId ?? '',
getTime(record.queuedAt),
record.phoneNumber,
record.channel?.sendRegion ?? '',
getCarrierLabel(record.channel?.carrier),
record.province ?? '',
getCarrierLabel(record.carrier),
record.billingUnits,
(record.amountCents / 100).toFixed(3),
record.channel?.name ?? record.channelId ?? '',
@@ -202,6 +202,10 @@ function SendDetailModal({
<span></span>
<strong>{getTime(record.queuedAt)}</strong>
</div>
<div>
<span></span>
<strong>{record.province ?? '-'} / {getCarrierLabel(record.carrier)}</strong>
</div>
</div>
<section>
<h3><MessageSquare size={18} /> </h3>
@@ -440,7 +444,7 @@ export function AdminSmsRecordsPage() {
<td>
<div className="admin-sms-record-phone">
<strong>{record.phoneNumber}</strong>
<span>{record.channel?.sendRegion ?? '-'} {getCarrierLabel(record.channel?.carrier)}</span>
<span>{record.province ?? '-'} {getCarrierLabel(record.carrier)}</span>
<small>{record.content.length}/{record.billingUnits}</small>
</div>
</td>