客户领取页 ui与逻辑优化

This commit is contained in:
yml
2026-05-04 01:53:35 +08:00
parent dd842c165a
commit a914b7b828
15 changed files with 2124 additions and 349 deletions
@@ -824,6 +824,16 @@ export async function prepareAdminTaskKuaishouCloudFulfillment(taskId, session =
vnPhone,
bindUrl: bindUrlResult.bindUrl,
bindPreparedAt: now,
roleName: '',
roleId: '',
},
role: {
status: 'pending',
name: '',
rid: '',
refreshedAt: null,
errorMessage: '',
rawInfo: null,
},
purchase: {
...flowWithResolvedBinding.purchase,
@@ -1017,6 +1027,11 @@ export async function refreshAdminTaskKuaishouCloudRoleInfo(taskId, session = nu
...taskContext,
kuaishouCloudFulfillment: {
...flow,
binding: {
...flow.binding,
roleName: bindInfo.name,
roleId: bindInfo.rid,
},
role: {
status: bindInfo.name || bindInfo.rid ? 'ready' : 'pending',
name: bindInfo.name,
@@ -1029,8 +1044,8 @@ export async function refreshAdminTaskKuaishouCloudRoleInfo(taskId, session = nu
}
const updatedTask = await updateTask(task.id, {
role_id: bindInfo.rid || task.role_id || '',
role_name: bindInfo.name || task.role_name || '',
role_id: bindInfo.rid || '',
role_name: bindInfo.name || '',
context_json: JSON.stringify(nextContext),
updated_at: now,
})