优化 UID 履约闸门、运营可见性与一键兑换
lewan 发货强制 expectedUid 并取消无 UID 旧路径回落;任务详情展示 UID 匹配态;领取页匹配后可一键兑换;补充 identity 单测并收口短链说明。
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { buildClaimUrl } from '../claim/claim-service.js'
|
||||
import { buildClaimIdentityAdminSummary } from '../claim/claim-identity.js'
|
||||
import { getClaimTokenById } from '../../repositories/claim-token-repo.js'
|
||||
import { listOrderItemsByOrderId } from '../../repositories/order-item-repo.js'
|
||||
import { getOrderById, listOrders } from '../../repositories/order-repo.js'
|
||||
@@ -250,6 +251,14 @@ export async function getAdminTaskDetail(
|
||||
mapKuaishouCloudFulfillmentContext(taskContext.kuaishouCloudFulfillment, {
|
||||
cloudSourceLabelMap,
|
||||
}) || mapKuaishouCloudTaskStateProjection(task, { cloudSourceLabelMap })
|
||||
const claimIdentity = buildClaimIdentityAdminSummary(taskContext, {
|
||||
flowLike:
|
||||
taskContext.kuaishouCloudFulfillment ||
|
||||
taskContext.kuaishouFeifei ||
|
||||
null,
|
||||
taskRoleId: task.role_id,
|
||||
taskRoleName: task.role_name,
|
||||
})
|
||||
const firstKuaishouIndustryVoucher = resolveKuaishouIndustryVoucherForTask(
|
||||
task,
|
||||
taskContext,
|
||||
@@ -316,6 +325,7 @@ export async function getAdminTaskDetail(
|
||||
roleName: String(taskState.reviewRoleName || '').trim() || '',
|
||||
},
|
||||
redeemResolution: mapRedeemResolutionContext(taskContext.redeemResolution),
|
||||
claimIdentity,
|
||||
kuaishouCloudFulfillment,
|
||||
kuaishouIndustryVoucher,
|
||||
manualDispatch: mapManualDispatchContext(taskContext.manualDispatch, viewerContext),
|
||||
|
||||
@@ -121,11 +121,13 @@ export function mapKuaishouCloudFulfillmentContext(
|
||||
bindProbeAt: binding.bindProbeAt || null,
|
||||
bindProbeStatus: String(binding.bindProbeStatus || '').trim(),
|
||||
bindProbeMessage: String(binding.bindProbeMessage || '').trim(),
|
||||
roleName: String(binding.roleName || role.name || '').trim(),
|
||||
roleId: String(binding.roleId || role.rid || '').trim(),
|
||||
},
|
||||
role: {
|
||||
status: String(role.status || 'pending').trim() || 'pending',
|
||||
name: String(role.name || '').trim(),
|
||||
rid: String(role.rid || '').trim(),
|
||||
name: String(role.name || binding.roleName || '').trim(),
|
||||
rid: String(role.rid || binding.roleId || '').trim(),
|
||||
refreshedAt: role.refreshedAt || null,
|
||||
errorMessage: String(role.errorMessage || '').trim(),
|
||||
rawInfo: role.rawInfo && typeof role.rawInfo === 'object' ? role.rawInfo : null,
|
||||
|
||||
Reference in New Issue
Block a user