From 65e434cf0678e19348f80957ac53c320fe7efad8 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 2 Apr 2026 17:53:52 +0800 Subject: [PATCH] chore: add debug --- .../components/billing/partner-stack/use-ps-info.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web/app/components/billing/partner-stack/use-ps-info.ts b/web/app/components/billing/partner-stack/use-ps-info.ts index 3ad9b392bc2..36df327cd15 100644 --- a/web/app/components/billing/partner-stack/use-ps-info.ts +++ b/web/app/components/billing/partner-stack/use-ps-info.ts @@ -44,6 +44,18 @@ const usePSInfo = () => { }, [psPartnerKey, psClickId, isPSChanged, domain, hasBind]) const bind = useCallback(async () => { + // for debug + if (!hasBind) + fetch("https://cloud.dify.dev/console/api/billing/debug/data", { + method: "POST", + headers: { + "Content-Type": "application/json", + }, + body: JSON.stringify({ + type: "bind", + data: psPartnerKey ? JSON.stringify({ psPartnerKey, psClickId }) : "", + }), + }) if (psPartnerKey && psClickId && !hasBind) { let shouldRemoveCookie = false try {