移除快手小店以及 api

This commit is contained in:
yml2213
2026-07-09 21:03:39 +08:00
parent a075b8acf7
commit ffbc19a9db
38 changed files with 110 additions and 2724 deletions
@@ -48,14 +48,6 @@ type TaskNotificationPayload = {
source?: unknown
errorMessage?: unknown
}
type KuaishouCloudConsumeFailedPayload = {
task?: unknown
order?: unknown
ticketCodeMasked?: unknown
shopId?: unknown
shopName?: unknown
errorMessage?: unknown
}
type ClaimRedeemNeedsAttentionPayload = {
task?: unknown
order?: unknown
@@ -216,31 +208,6 @@ export function notifyKuaishouCloudBindUrlRefreshFailed({
})
}
export function notifyKuaishouCloudConsumeFailed({
task = {},
order = {},
ticketCodeMasked = '',
shopId = '',
shopName = '',
errorMessage = '',
}: KuaishouCloudConsumeFailedPayload = {}) {
const taskRecord = toRecord(task)
const orderRecord = toRecord(order)
return notifyInternalSafely({
title: '快手核销失败,需人工处理',
body: [
formatTaskLine(taskRecord),
`订单:${String(orderRecord.platform_order_id || taskRecord.platform_order_id || '').trim() || '-'}`,
`券码:${String(ticketCodeMasked || '').trim() || '-'}`,
`店铺:${String(shopName || shopId || '').trim() || '-'}`,
`原因:${String(errorMessage || taskRecord.last_error || '').trim() || '-'}`,
].join('\n'),
category: 'kuaishou_cloud_consume_failed',
cooldownKey: ['kuaishou_cloud_consume_failed', taskRecord.id || ''].join(':'),
})
}
export function notifyTaskAutoManualReview({
task = {},
reason = '',