From a7de443cb9b780ccf793921c5b11e731521c820d Mon Sep 17 00:00:00 2001 From: yml2213 Date: Mon, 10 Aug 2026 16:51:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E4=B8=8D=E5=9C=A8?= =?UTF-8?q?=E9=A2=91=E7=B9=81=E6=8A=A5=E9=94=99=20=E8=AF=95=2091=20?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platforms/kuaishou-industry/send-code-service.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/backend/src/services/platforms/kuaishou-industry/send-code-service.ts b/apps/backend/src/services/platforms/kuaishou-industry/send-code-service.ts index 8e927e68..62ea6310 100644 --- a/apps/backend/src/services/platforms/kuaishou-industry/send-code-service.ts +++ b/apps/backend/src/services/platforms/kuaishou-industry/send-code-service.ts @@ -485,6 +485,9 @@ async function syncOpen91OrderAfterSendCallbackSuccess( taskCount: result.tasks.length, }) } catch (error) { + if (isOpen91OrderAwaitingFulfillmentConfig(error)) { + return + } logIntegration( '[kuaishou-industry/send-code]', '电子凭证发货回调成功后重试 91 订单失败', @@ -499,6 +502,15 @@ async function syncOpen91OrderAfterSendCallbackSuccess( } } +function isOpen91OrderAwaitingFulfillmentConfig(error: unknown) { + return Boolean( + error && + typeof error === 'object' && + String((error as { errorCode?: unknown }).errorCode || '').trim() === + 'open91_order_still_unconfigured', + ) +} + function isRetriableSendCallbackFailure(result: Awaited>) { if (result.success) { return false