开启后端严格空值检查
This commit is contained in:
@@ -241,7 +241,7 @@ async function expireClaimContext(claimToken: ClaimTokenRow, task: TaskRow) {
|
||||
user_action_status: 'expired',
|
||||
last_error: '领取链接已过期',
|
||||
updated_at: now,
|
||||
})
|
||||
}) || task
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -162,7 +162,7 @@ export async function getKuaishouCloudClaimDetail(token: unknown) {
|
||||
let task = context.task
|
||||
|
||||
if (String(task.executor_key || '').trim() === 'kuaishou_ct_assisted') {
|
||||
task = await syncKuaishouCloudRoleInfo(task)
|
||||
task = await syncKuaishouCloudRoleInfo(task) || task
|
||||
}
|
||||
|
||||
return buildClaimDetailPayload({
|
||||
|
||||
@@ -30,14 +30,14 @@ export async function syncKuaishouCloudRoleInfo(task: TaskRow) {
|
||||
source: 'claim_page_polling_bind_url_probe',
|
||||
actor: { source: 'system' },
|
||||
})
|
||||
task = probed.task
|
||||
task = probed.task || task
|
||||
|
||||
const result = await refreshKuaishouCloudTaskRoleInfo(task, {
|
||||
source: 'claim_page_polling',
|
||||
actor: { source: 'system' },
|
||||
recordEvent: false,
|
||||
})
|
||||
return result.task
|
||||
return result.task || task
|
||||
} catch {
|
||||
return task
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user