优化推送统一订单信息-playxId修改为用户名

This commit is contained in:
2026-05-07 14:20:45 +08:00
parent afa3750035
commit 2f8c4f4ced
7 changed files with 59 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ export default {
manual_retry: 'Retry grant',
retry_confirm: 'Queue this order for grant retry?',
id: 'Order ID',
user_id: 'User ID',
user_id: 'Username',
type: 'Type',
'type BONUS': 'Bonus',
'type PHYSICAL': 'Physical',

View File

@@ -3,7 +3,7 @@ export default {
manual_retry: '手动重试',
retry_confirm: '确认将该订单加入重试队列?',
id: 'ID',
user_id: 'playX-ID',
user_id: '用户名',
type: '类型',
'type BONUS': '红利(BONUS)',
'type PHYSICAL': '实物(PHYSICAL)',

View File

@@ -60,6 +60,17 @@ const baTable = new baTableClass(
operatorPlaceholder: t('Fuzzy query'),
sortable: false,
operator: 'LIKE',
formatter: (row: TableRow, _column: TableColumn, cellValue: string) => {
const r = row as Record<string, unknown>
const rel = r.mallUserAsset ?? r.mall_user_asset
if (rel && typeof rel === 'object' && 'username' in rel) {
const u = (rel as { username?: unknown }).username
if (typeof u === 'string' && u.trim() !== '') {
return u
}
}
return (cellValue ?? row.user_id ?? '').toString()
},
},
{
label: t('mall.order.type'),