优化连接过期验证与戒色信息-1
This commit is contained in:
@@ -189,6 +189,7 @@ export async function confirmKuaishouCloudClaimRole(token) {
|
||||
source: 'claim_page_role_confirm',
|
||||
actor: { source: 'claim_page' },
|
||||
recordEvent: false,
|
||||
forceProbe: true,
|
||||
})
|
||||
const flow = normalizeKuaishouCloudFlow(parseTaskContext(refreshed.task).kuaishouCloudFulfillment)
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
normalizeKuaishouCloudFlow,
|
||||
probeKuaishouCloudTaskBindUrl,
|
||||
refreshKuaishouCloudTaskRoleInfo,
|
||||
} from '../fulfillment/kuaishou-cloud-task-service.js'
|
||||
|
||||
@@ -10,11 +11,13 @@ export async function syncKuaishouCloudRoleInfo(task) {
|
||||
return task
|
||||
}
|
||||
|
||||
if (flow.binding.roleName && flow.binding.roleId) {
|
||||
return task
|
||||
}
|
||||
|
||||
try {
|
||||
const probed = await probeKuaishouCloudTaskBindUrl(task, {
|
||||
source: 'claim_page_polling_bind_url_probe',
|
||||
actor: { source: 'system' },
|
||||
})
|
||||
task = probed.task
|
||||
|
||||
const result = await refreshKuaishouCloudTaskRoleInfo(task, {
|
||||
source: 'claim_page_polling',
|
||||
actor: { source: 'system' },
|
||||
|
||||
@@ -105,6 +105,10 @@ export function mapClaimKuaishouCloudFulfillment(task, order) {
|
||||
vnId: Number(binding.vnId || 0) || 0,
|
||||
bindUrl: String(binding.bindUrl || '').trim(),
|
||||
bindPreparedAt: binding.bindPreparedAt || null,
|
||||
bindExpiresAt: binding.bindExpiresAt || null,
|
||||
bindProbeAt: binding.bindProbeAt || null,
|
||||
bindProbeStatus: String(binding.bindProbeStatus || '').trim(),
|
||||
bindProbeMessage: String(binding.bindProbeMessage || '').trim(),
|
||||
vnPhone: String(binding.vnPhone || '').trim(),
|
||||
roleName: String(binding.roleName || '').trim(),
|
||||
roleId: String(binding.roleId || '').trim(),
|
||||
|
||||
Reference in New Issue
Block a user